Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CocoonConfig ¶ added in v0.1.1
type CocoonConfig struct {
Socket string `yaml:"socket"`
}
CocoonConfig is defaulted in Prepare like ContainerdConfig; the daemon it points at is optional.
type Config ¶
type Config struct {
PidFile string `yaml:"pid" default:"/tmp/agent.pid"`
Core []string `yaml:"core" required:"true"`
HostName string `yaml:"-"`
HeartbeatInterval int `yaml:"heartbeat_interval" default:"60"`
CheckOnlyMine bool `yaml:"check_only_mine" default:"false"`
Store string `yaml:"store" default:"grpc"`
MetaDir string `yaml:"meta_dir" default:"/run/eru/workloads"`
StateDir string `yaml:"state_dir" default:"/var/lib/eru-agent"`
Auth coretypes.AuthConfig `yaml:"auth"`
Runtimes RuntimesConfig `yaml:"runtimes"`
Metrics MetricsConfig
API APIConfig `yaml:"api"`
Log LogConfig
HealthCheck HealthCheckConfig `yaml:"healthcheck"`
GlobalConnectionTimeout time.Duration `yaml:"global_connection_timeout" default:"5s"`
}
type ContainerdConfig ¶ added in v0.1.1
ContainerdConfig is defaulted in Prepare: the walker cannot default a pointer the file allocates.
type HealthCheckConfig ¶
type MetricsConfig ¶
type MocksConfig ¶ added in v0.1.1
type MocksConfig struct{}
MocksConfig has no keys: the scripted runtime the test suite runs against.
type NodeStatus ¶
type RuntimesConfig ¶ added in v0.1.1
type RuntimesConfig struct {
Containerd *ContainerdConfig `yaml:"containerd"`
Systemd *SystemdConfig `yaml:"systemd"`
Cocoon *CocoonConfig `yaml:"cocoon"`
Mocks *MocksConfig `yaml:"mocks"`
}
RuntimesConfig lists the runtimes this node hosts; the heartbeat needs every one of them alive.
type SystemdConfig ¶ added in v0.1.1
type SystemdConfig struct{}
SystemdConfig has no keys: a process pod is described by its meta file, not by the runtime.
type WorkloadEventMessage ¶
Click to show internal directories.
Click to hide internal directories.