Documentation ¶
Index ¶
- type ClientAPI
- func (capi ClientAPI) Agents(conf map[string]string, agentUUID string) ([]defs.AgentAdvert, error)
- func (capi ClientAPI) Create(conf map[string]string, yamlFileName string) error
- func (capi ClientAPI) Delete(conf map[string]string, objType, objLabel string) error
- func (capi ClientAPI) DisplayAgents(agents []defs.AgentAdvert, detail bool) error
- func (capi ClientAPI) Groups(conf map[string]string) error
- func (capi ClientAPI) Objects(conf map[string]string, objType string) error
- func (capi ClientAPI) Run(conf map[string]string, testrunName string, displayReport, skipConfirm bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAPI ¶
type ClientAPI struct{}
func (ClientAPI) Agents ¶
Agents will query the ToDD server for a list of currently registered agents, and will display a list of them to the user. Optionally, the user can provide a subargument containing the UUID of a registered agent, and this function will output more detailed information about that agent.
func (ClientAPI) Create ¶
Create is responsible for pushing a ToDD object to the server for eventual storage in whatever database is being used It will send a ToddObject rendered as JSON to the "createobject" method of the ToDD API
func (ClientAPI) DisplayAgents ¶
func (capi ClientAPI) DisplayAgents(agents []defs.AgentAdvert, detail bool) error
DisplayAgents is responsible for displaying a set of Agents to the terminal
func (ClientAPI) Groups ¶
Groups will query ToDD for a map containing current agent-to-group mappings