Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HaveBackend ¶
Types ¶
type Backend ¶
type Backend interface {
Configure(*zap.Logger, policies.PolicyRepo, map[string]string) error
SetCommsClient(string, mqtt.Client, string)
Version() (string, error)
Start() error
Stop() error
GetCapabilities() (map[string]interface{}, error)
GetState() (BackendState, string, error)
ApplyPolicy(data policies.PolicyData) error
RemovePolicy(data policies.PolicyData) error
}
func GetBackend ¶
type BackendState ¶
type BackendState int
const ( Unknown BackendState = iota Running BackendError AgentError )
func (BackendState) String ¶
func (s BackendState) String() string
Click to show internal directories.
Click to hide internal directories.