Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶ added in v1.3.0
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶ added in v1.3.0
func NewCluster(c Config, d Diagnostic) (*Cluster, error)
type Config ¶
type Config struct { Enabled bool `toml:"enabled" override:"enabled"` ID string `toml:"id" override:"id"` InCluster bool `toml:"in-cluster" override:"in-cluster"` APIServers []string `toml:"api-servers" override:"api-servers"` Token string `toml:"token" override:"token,redact"` CAPath string `toml:"ca-path" override:"ca-path"` Namespace string `toml:"namespace" override:"namespace"` Resource string `toml:"resource" override:"resource"` }
func (Config) Prom ¶ added in v1.3.0
func (c Config) Prom(conf *config.ScrapeConfig)
Prom writes the prometheus configuration for discoverer into ScrapeConfig
type Configs ¶ added in v1.3.0
type Configs []Config
func (*Configs) UnmarshalTOML ¶ added in v1.3.0
type Diagnostic ¶ added in v1.4.0
type Diagnostic interface {
WithClusterContext(cluster string) Diagnostic
}
Doesn't actually get used, but its good to have a template here already
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the kubernetes discovery and autoscale service
func NewService ¶
NewService creates a new unopened k8s service
func (*Service) TestOptions ¶
func (s *Service) TestOptions() interface{}
Click to show internal directories.
Click to hide internal directories.