Versions in this module Expand all Collapse all v0 v0.10.0 Jan 12, 2020 v0.9.0 Dec 7, 2019 v0.8.0 Sep 19, 2019 v0.7.1 Sep 8, 2019 v0.7.0 Sep 7, 2019 v0.6.1 Sep 6, 2019 v0.6.0 Sep 6, 2019 v0.5.0 Jul 24, 2019 Changes in this version + type ActivationChecker func() bool type Agent + func (a *Agent) ServerInfo() agents.ServerInfoSource + func (a *Agent) SetActivationChecker(ac ActivationChecker) + func (a *Agent) ShouldActivate() bool + type ChoriaFramework interface + BuildInfo func() *build.Info + Certname func() string + Configuration func() *config.Config + FacterCmd func() string + FacterDomain func() (string, error) + MiddlewareServers func() (srvcache.Servers, error) + NewRequestID func() (string, error) + NewTransportFromJSON func(data string) (message protocol.TransportMessage, err error) + ProvisionMode func() bool + UniqueID func() string v0.4.1 Jun 21, 2019 Changes in this version + const Aborted + const InvalidData + const MissingData + const OK + const UnknownAction + const UnknownError + func NewChoriaAgentPlugin(metadata *agents.Metadata, ...) plugin.Pluggable + func ParseRequestData(target interface{}, request *Request, reply *Reply) bool + type Action func(context.Context, *Request, *Reply, *Agent, choria.ConnectorInfo) + type Agent struct + Choria *choria.Framework + Config *config.Config + Log *logrus.Entry + ServerInfoSource agents.ServerInfoSource + func New(name string, metadata *agents.Metadata, fw *choria.Framework, ...) *Agent + func (a *Agent) ActionNames() []string + func (a *Agent) HandleMessage(ctx context.Context, msg *choria.Message, request protocol.Request, ...) + func (a *Agent) Metadata() *agents.Metadata + func (a *Agent) MustRegisterAction(name string, f Action) + func (a *Agent) Name() string + func (a *Agent) RegisterAction(name string, f Action) error + func (a *Agent) SetServerInfo(si agents.ServerInfoSource) + type AgentPlugin struct + func (p *AgentPlugin) PluginInstance() interface{} + func (p *AgentPlugin) PluginName() string + func (p *AgentPlugin) PluginType() plugin.Type + func (p *AgentPlugin) PluginVersion() string + type Reply struct + Data interface{} + DisableResponse bool + Statuscode StatusCode + Statusmsg string + type Request struct + Action string + Agent string + CallerID string + Collective string + Data json.RawMessage + Filter *protocol.Filter + RequestID string + SenderID string + TTL int + Time time.Time + type StatusCode uint8