Documentation ¶
Index ¶
Constants ¶
View Source
const ( RebootingReason = "Rebooting" OsImageDegradedReason = "OSImageControllerDegraded" BootedWithUnexpectedImage = "BootedWithUnexpectedImage" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent is responsible for managing the workloads, configuration and status of the device.
func NewAgent ¶
func NewAgent( name string, deviceWriter *fileio.Writer, statusManager status.Manager, specManager *spec.Manager, fetchSpecInterval time.Duration, fetchStatusInterval time.Duration, configController *config.Controller, osImageController *OSImageController, log *logrus.Logger, logPrefix string, ) *Agent
NewAgent creates a new device agent.
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
func NewBootstrap ¶
func NewBootstrap( deviceName string, executer executer.Executer, deviceWriter *fileio.Writer, deviceReader *fileio.Reader, enrollmentCSR []byte, statusManager status.Manager, enrollmentClient *client.Enrollment, managementEndpoint string, enrollmentUIEndpoint string, caFile string, keyFile string, managementGeneratedCertFile string, backoff wait.Backoff, currentRenderedFile string, desiredRenderedFile string, log *logrus.Logger, logPrefix string, ) *Bootstrap
type OSImageController ¶
type OSImageController struct {
// contains filtered or unexported fields
}
func NewOSImageController ¶
func (*OSImageController) Sync ¶
func (c *OSImageController) Sync(ctx context.Context, desired *v1alpha1.RenderedDeviceSpec) error
Click to show internal directories.
Click to hide internal directories.