Documentation
¶
Index ¶
Constants ¶
const (
BootstrapComplete = "Bootstrap complete"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent is responsible for managing the applications, configuration and status of the device.
func NewAgent ¶
func NewAgent( name string, systemdClient *client.Systemd, deviceWriter fileio.Writer, statusManager status.Manager, specManager spec.Manager, appManager applications.Manager, systemdManager systemd.Manager, statusUpdateInterval util.Duration, statusUpdateJitter util.Duration, hookManager hook.Manager, osManager os.Manager, policyManager policy.Manager, lifecycleManager lifecycle.Manager, applicationsController *applications.Controller, configController *config.Controller, resourceManager resource.Manager, consoleManager *console.Manager, osClient os.Client, podmanClient *client.Podman, prefetchManager dependency.PrefetchManager, pullConfigResolver dependency.PullConfigResolver, pruningManager imagepruning.Manager, caps os.Capabilities, criticalCh <-chan struct{}, backoff wait.Backoff, log *log.PrefixLogger, ) *Agent
NewAgent creates a new device agent.
func (*Agent) ReloadConfig ¶ added in v0.7.0
ReloadConfig reloads the device agent configuration. This is called when the device agent is reloaded.
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
func NewBootstrap ¶
func NewBootstrap( deviceName string, executer executer.Executer, deviceReadWriter fileio.ReadWriter, specManager spec.Manager, statusManager status.Manager, hookManager hook.Manager, lifecycleInitializer lifecycle.Initializer, managementServiceConfig *baseclient.Config, systemInfoManager systeminfo.Manager, managementMetricsCallback client.RPCMetricsCallback, podmanClient *client.Podman, systemdClient *client.Systemd, identityProvider identity.Provider, log *log.PrefixLogger, ) *Bootstrap
func (*Bootstrap) ManagementClient ¶ added in v0.10.0
func (b *Bootstrap) ManagementClient() client.Management
ManagementClient returns the management client for use by other components.
type Clock ¶ added in v0.4.0
type Clock interface {
Now() time.Time
NewTicker(d time.Duration) Ticker
After(d time.Duration) <-chan time.Time
}
Clock interface allows us to mock time in tests.
type Engine ¶ added in v0.4.0
type Engine struct {
// contains filtered or unexported fields
}
func NewEngine ¶ added in v0.4.0
func NewEngine( syncSpecFn func(context.Context), pushStatusInterval util.Duration, pushStatusFn func(context.Context), statusJitterMax time.Duration, criticalChangeCh <-chan struct{}, criticalPushFn func(context.Context), ) *Engine
NewEngine creates a new device engine. statusJitterMax is the maximum random delay before the first status push (uniform in [0, statusJitterMax)). Zero disables jitter.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package applications is a generated GoMock package.
|
Package applications is a generated GoMock package. |
|
console
Package console is a generated GoMock package.
|
Package console is a generated GoMock package. |
|
helm
Package helm provides agent-side label injection into rendered Kubernetes manifests for release tracking.
|
Package helm provides agent-side label injection into rendered Kubernetes manifests for release tracking. |
|
lifecycle
Package lifecycle is a generated GoMock package.
|
Package lifecycle is a generated GoMock package. |
|
provider
Package provider is a generated GoMock package.
|
Package provider is a generated GoMock package. |
|
Package console is a generated GoMock package.
|
Package console is a generated GoMock package. |
|
Package delta contains storage-independent OCI delta candidate decisions.
|
Package delta contains storage-independent OCI delta candidate decisions. |
|
Package dependency is a generated GoMock package.
|
Package dependency is a generated GoMock package. |
|
Package fileio is a generated GoMock package.
|
Package fileio is a generated GoMock package. |
|
Package hook is a generated GoMock package.
|
Package hook is a generated GoMock package. |
|
Package imagepruning is a generated GoMock package.
|
Package imagepruning is a generated GoMock package. |
|
Package lifecycle is a generated GoMock package.
|
Package lifecycle is a generated GoMock package. |
|
Package os is a generated GoMock package.
|
Package os is a generated GoMock package. |
|
Package policy is a generated GoMock package.
|
Package policy is a generated GoMock package. |
|
Package resource is a generated GoMock package.
|
Package resource is a generated GoMock package. |
|
Package spec is a generated GoMock package.
|
Package spec is a generated GoMock package. |
|
audit
Package audit provides structured audit logging for device spec transitions.
|
Package audit provides structured audit logging for device spec transitions. |
|
Package status is a generated GoMock package.
|
Package status is a generated GoMock package. |
|
Package systemd is a generated GoMock package.
|
Package systemd is a generated GoMock package. |
|
Package systeminfo is a generated GoMock package.
|
Package systeminfo is a generated GoMock package. |