Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParameterTypeString = "string" ParameterTypeBinary = "binary" ParameterTypeInteger = "integer" ParameterTypeNumber = "number" ParameterTypeBoolean = "boolean" ParameterTypeObject = "object" ParameterTypeStringArray = "stringArray" ParameterTypeIntegerArray = "integerArray" ParameterTypeNumberArray = "numberArray" ParameterTypeBooleanArray = "booleanArray" ParameterTypeObjectArray = "objectArray" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResult ¶
type Command ¶
type Command struct { Service string Name string Description string Parameters []CommandParameter Hidden bool }
func NewCommand ¶
type CommandParameter ¶
func NewCommandParameter ¶
func NewCommandParameter(name string, type_ string, description string, required bool) *CommandParameter
type CommandPlugin ¶
type CommandPlugin interface { Command() Command Execute(context ExecutionContext, writer output.OutputWriter, logger log.Logger) error }
type ExecutionContext ¶
type ExecutionContext struct { BaseUri url.URL Auth AuthResult Parameters []ExecutionParameter Insecure bool }
func NewExecutionContext ¶
func NewExecutionContext( baseUri url.URL, auth AuthResult, parameters []ExecutionParameter, insecure bool) *ExecutionContext
type ExecutionParameter ¶
type ExecutionParameter struct { Name string Value interface{} }
func NewExecutionParameter ¶
func NewExecutionParameter(name string, value interface{}) *ExecutionParameter
type FileParameter ¶
func NewFileParameter ¶
func NewFileParameter(filename string, data []byte) *FileParameter
Source Files ¶
Click to show internal directories.
Click to hide internal directories.