Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Name string `json:"action"` Input json.RawMessage `json:"input"` Output map[string]*ActionOutputItem `json:"output"` Display string `json:"display"` Description string `json:"description"` }
Action describes an individual action in an agent
type ActionOutputItem ¶
type ActionOutputItem struct { Description string `json:"description"` DisplayAs string `json:"display_as"` Default interface{} `json:"default"` }
ActionOutputItem describes an individual output item
type DDL ¶
type DDL struct { Schema string `json:"$schema"` Metadata *agents.Metadata `json:"metadata"` Actions []*Action `json:"actions"` }
DDL represents the schema of a mcorpc agent and is at a basic level compatible with the mcollective agent ddl format
func (*DDL) ActionInterface ¶
ActionInterface looks up an Action by name
func (*DDL) ActionNames ¶
ActionNames is a list of known actions defined by a DDL
func (*DDL) HaveAction ¶
HaveAction determines if an action is known
Click to show internal directories.
Click to hide internal directories.