defs

package
v0.0.0-...-c28e91b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 18

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

PPFacts 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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL