Versions in this module Expand all Collapse all v0 v0.20.0 Nov 6, 2022 Changes in this version + func GetList() []string + func HaveBackend(name string) bool + func Register(name string, b Backend) + type Backend interface + ApplyPolicy func(data policies.PolicyData, updatePolicy bool) error + Configure func(*zap.Logger, policies.PolicyRepo, map[string]string, map[string]interface{}) error + FullReset func(ctx context.Context) error + GetCapabilities func() (map[string]interface{}, error) + GetRunningStatus func() (RunningStatus, string, error) + GetStartTime func() time.Time + RemovePolicy func(data policies.PolicyData) error + SetCommsClient func(string, mqtt.Client, string) + Start func(ctx context.Context, cancelFunc context.CancelFunc) error + Stop func(ctx context.Context) error + Version func() (string, error) + func GetBackend(name string) Backend + type RunningStatus int + const AgentError + const BackendError + const Offline + const Running + const Unknown + func (s RunningStatus) String() string + type State struct + LastError string + LastRestartReason string + LastRestartTS time.Time + RestartCount int64 + Status RunningStatus