Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TenantCredential ¶
type TenantCredential struct { Server struct { HTTPListenPort int `yaml:"http_listen_port"` GrpcListenPort int `yaml:"grpc_listen_port"` } `yaml:"server"` Client struct { URL string `yaml:"url"` BasicAuth struct { Username string `yaml:"username"` Password string `yaml:"password"` } `yaml:"basic_auth"` TenantID string `yaml:"tenant_id"` } `yaml:"client"` ScrapeConfigs []struct { JobName string `yaml:"job_name"` StaticConfigs []struct { Targets []string `yaml:"targets"` Labels struct { Job string `yaml:"job"` Path string `yaml:"__path__"` } `yaml:"labels"` } `yaml:"static_configs"` PipelineStages []struct { Regex struct { Expression string `yaml:"expression"` } `yaml:"regex,omitempty"` Labels struct { Namespace interface{} `yaml:"namespace"` Pod interface{} `yaml:"pod"` Container interface{} `yaml:"container"` } `yaml:"labels,omitempty"` Tenant struct { Source string `yaml:"source"` } `yaml:"tenant,omitempty"` Output struct { Source string `yaml:"source"` } `yaml:"output,omitempty"` } `yaml:"pipeline_stages"` } `yaml:"scrape_configs"` }
func AllTenantCredentials ¶
func AllTenantCredentials(tenantsecret string) ([]TenantCredential, error)
collects all tenant credentials
func GetTenantCredential ¶
func GetTenantCredential(file string) (TenantCredential, error)
input is a decoded yaml config file from the secret
Click to show internal directories.
Click to hide internal directories.