Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAgentHandlers ¶
func RegisterAgentHandlers(r pure.IRouteGroup)
RegisterAgentHandlers registers the handler for receiving information from agents.
func RegisterHandlers ¶
func RegisterHandlers(r pure.IRouteGroup)
RegisterHandlers registers the handlers for the task module.
func RegisterUIHandlers ¶
func RegisterUIHandlers(r pure.IRouteGroup)
RegisterUIHandlers registers the HTTP handlers for the task UI.
Types ¶
type List ¶
List implements List type as well as the json.Marshaler interface.
func (*List) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
type Plugin ¶
type Plugin interface {
// GetCommand returns the command to run the server.
GetCommand(task models.Task) (string, error)
// GetFetchCommand returns a command to run which will be used to fetch relevant information about the node, and a callback that returns JSON metadata to send the output too.
GetFetchCommand() (string, func([]string) ([]byte, error))
// GetInputs takes the JSON metadata and returns a JSON that can be converted to a ui.Form object.
GetInputs([]byte) ([]byte, error)
// GetUUID returns the UUID of the plugin.
GetUUID() string
}
Plugin defines the interface for Task module plugins.
Click to show internal directories.
Click to hide internal directories.