Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentAdvert ¶
type AgentAdvert struct {
Uuid string `json:"Uuid"`
DefaultAddr string `json:"DefaultAddr"`
Expires time.Duration `json:"Expires"`
LocalTime time.Time `json:"LocalTime"`
Facts map[string][]string `json:"Facts"`
FactCollectors map[string]string `json:"FactCollectors"`
Testlets map[string]string `json:"Testlets"`
}
AgentAdvert is a struct for an Agent advertisement
func (AgentAdvert) CollectorSummary ¶
func (a AgentAdvert) CollectorSummary() string
CollectorSummary produces a string containing a list of available collectors indicated by this agent advertisement.
func (AgentAdvert) FactSummary ¶
func (a AgentAdvert) FactSummary() string
FactSummary produces a string containing a list of facts present in this agent advertisement.
func (AgentAdvert) PPFacts ¶
func (a AgentAdvert) PPFacts() string
JsonPP pretty-prints the facts for an agent
func (AgentAdvert) TestletSummary ¶
func (a AgentAdvert) TestletSummary() string
TestletSummary produces a string containing a list of available collectors indicated by this agent advertisement.
type AgentRegistry ¶
type AgentRegistry struct {
Agents map[string]*AgentAdvert
Mu sync.Mutex
}
type TestRun ¶
type TestRun struct {
Uuid string `json:"uuid"`
Targets []string `json:"targets"`
Testlet string `json:"testlet"`
Args string `json:"args"`
}
TestRun is a struct for a testrun command to be sent to the agent. This is not to be confused with the testrun object. Here, the "targets" property is a string slice - which means that the target type and targets have already been calculated by the server. This struct is sent to a specific agent so that it has the instructions it needs to perform a test.