Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfiguration ¶
type AgentConfiguration struct { WorkingDir string `yaml:"workingDir" validate:"nonzero"` StartupCmds []ExecCommand `yaml:"startupCmds"` ReleaseCmds []ExecCommand `yaml:"releaseCmds"` TestEnvVars map[string]string `yaml:"testEnvVars"` }
AgentConfiguration is a collection of knobs to configure agents
type Configuration ¶
type Configuration struct { Server ServerConfiguration `yaml:"server"` Metrics MetricsConfiguration `yaml:"metrics"` Agent AgentConfiguration `yaml:"agent"` }
Configuration is a collection of knobs to configure m3em_agent processes
type ExecCommand ¶
type ExecCommand struct { Path string `yaml:"path" validate:"nonzero"` Args []string `yaml:"args"` }
ExecCommand is an executable command
type MetricsConfiguration ¶
type MetricsConfiguration struct { Prefix string `yaml:"prefix"` SampleRate float64 `yaml:"sampleRate" validate:"min=0.01,max=1.0"` M3 tallym3.Configuration `yaml:"m3" validate:"nonzero"` }
MetricsConfiguration is a collection of knobs to configure metrics collection
type ServerConfiguration ¶
type ServerConfiguration struct { ListenAddress string `yaml:"listenAddress" validate:"nonzero"` DebugAddress string `yaml:"debugAddress" validate:"nonzero"` TLS *TLSConfiguration `yaml:"tls"` }
ServerConfiguration is a collection of knobs to control grpc server configuration
type TLSConfiguration ¶
type TLSConfiguration struct { CACrtPath string `yaml:"caCrt" validate:"nonzero"` ServerCrtPath string `yaml:"serverCrt" validate:"nonzero"` ServerKeyPath string `yaml:"serverKey" validate:"nonzero"` }
TLSConfiguration are the resources required for TLS Communication
func (TLSConfiguration) Credentials ¶
func (t TLSConfiguration) Credentials() (credentials.TransportCredentials, error)
Credentials returns the TransportCredentials corresponding to the provided struct
Click to show internal directories.
Click to hide internal directories.