3 // Informer collects and returns information on cluster.
4 type Informer interface {
5 // GetAPIParams returns API server parameters.
6 GetAPIParams() ([]string, error)
9 // Command represents commands run on cluster.
13 // APIProcess represents API server command ("kube-apiserver").
14 APIProcess Command = iota
17 func (c Command) String() string {
22 if c < APIProcess || c > APIProcess {
28 // Service represents services run on Rancher-based cluster.
32 // APIService represents API server service ("kubernetes/kubernetes").
33 APIService Service = iota
36 func (s Service) String() string {
38 "kubernetes/kubernetes",
41 if s < APIService || s > APIService {