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 Category *CommandCategory }
func NewCommand ¶
func (*Command) WithCategory ¶ added in v1.0.26
func (*Command) WithOperation ¶ added in v1.0.26
type CommandCategory ¶ added in v1.0.26
func NewCommandCategory ¶ added in v1.0.26
func NewCommandCategory(name string, description string) *CommandCategory
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 Input *FileParameter Parameters []ExecutionParameter Insecure bool Debug bool }
func NewExecutionContext ¶
func NewExecutionContext( baseUri url.URL, auth AuthResult, input *FileParameter, parameters []ExecutionParameter, insecure bool, debug bool) *ExecutionContext
type ExecutionParameter ¶
type ExecutionParameter struct { Name string Value interface{} }
func NewExecutionParameter ¶
func NewExecutionParameter(name string, value interface{}) *ExecutionParameter
type FileParameter ¶
type FileParameter struct {
// contains filtered or unexported fields
}
func NewFileParameter ¶
func NewFileParameter(path string, filename string, data []byte) *FileParameter
func (FileParameter) Data ¶
func (f FileParameter) Data() (io.ReadCloser, int64, error)
func (FileParameter) Filename ¶
func (f FileParameter) Filename() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.