agent

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) *Agent

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

Run the agent This method initializes the agent, including its plugins, and then blocks on the main event loop.

func (*Agent) Status

func (a *Agent) Status() (interface{}, error)

Status is used as a top-level health check for the Agent.

type Config

type Config struct {
	// Address to bind the workload api to
	BindAddress *net.UnixAddr

	// Directory to store runtime data
	DataDir string

	// The Validation Context resource name to use for the default X.509 bundle with Envoy SDS
	DefaultBundleName string

	// The TLS Certificate resource name to use for the default X509-SVID with Envoy SDS
	DefaultSVIDName string

	// If true, the agent will bootstrap insecurely with the server
	InsecureBootstrap bool

	// HealthChecks provides the configuration for health monitoring
	HealthChecks health.Config

	// Configurations for agent plugins
	PluginConfigs catalog.HCLPluginConfigMap

	Log logrus.FieldLogger

	// Address of SPIRE server
	ServerAddress string

	// SyncInterval controls how often the agent sync synchronizer waits
	SyncInterval time.Duration

	// Trust domain and associated CA bundle
	TrustDomain url.URL
	TrustBundle []*x509.Certificate

	// Join token to use for attestation, if needed
	JoinToken string

	// If true enables profiling.
	ProfilingEnabled bool

	// Port used by the pprof web server when ProfilingEnabled == true
	ProfilingPort int

	// Frequency in seconds by which each profile file will be generated.
	ProfilingFreq int

	// Array of profiles names that will be generated on each profiling tick.
	ProfilingNames []string

	// Telemetry provides the configuration for metrics exporting
	Telemetry telemetry.FileConfig
}

Directories

Path Synopsis
attestor
common
sds
plugin
keymanager
Provides interfaces and adapters for the KeyManager service Generated code.
Provides interfaces and adapters for the KeyManager service Generated code.
nodeattestor
Provides interfaces and adapters for the NodeAttestor service Generated code.
Provides interfaces and adapters for the NodeAttestor service Generated code.
workloadattestor
Provides interfaces and adapters for the WorkloadAttestor service Generated code.
Provides interfaces and adapters for the WorkloadAttestor service Generated code.

Jump to

Keyboard shortcuts

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