agentmain

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

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

Credentials returns the TransportCredentials corresponding to the provided struct

Jump to

Keyboard shortcuts

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