3 // Informer collects and returns information on cluster.
4 type Informer interface {
5 // GetAPIParams returns API server parameters.
6 GetAPIParams() ([]string, error)
7 // GetSchedulerParams returns scheduler parameters.
8 GetSchedulerParams() ([]string, error)
11 // Command represents commands run on cluster.
15 // APIProcess represents API server command ("kube-apiserver").
16 APIProcess Command = iota
17 // SchedulerProcess represents scheduler command ("kube-scheduler").
21 func (c Command) String() string {
27 if c < APIProcess || c > SchedulerProcess {
33 // Service represents services run on Rancher-based cluster.
37 // APIService represents API server service ("kubernetes/kubernetes").
38 APIService Service = iota
39 // SchedulerService represents scheduler service ("kubernetes/scheduler").
43 func (s Service) String() string {
45 "kubernetes/kubernetes",
46 "kubernetes/scheduler",
49 if s < APIService || s > SchedulerService {