tenant

package
v0.0.0-...-dc8d137 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 3 Imported by: 0

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"`
			Output struct {
				Source string `yaml:"source"`
			} `yaml:"output,omitempty"`
		} `yaml:"pipeline_stages"`
	} `yaml:"scrape_configs"`
}

func AllTenantCredentials

func AllTenantCredentials() ([]TenantCredential, error)

collects all tenant credentials

func GetTenantCredential

func GetTenantCredential(file string) (TenantCredential, error)

input is a decoded yaml config file from the secret

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL