Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpSet = "set" OpGet = "get" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecRequest ¶
type ExecRequest struct {
Action string `json:"action"`
Key string `json:"key"`
Value string `json:"value,omitempty"`
}
ExecRequest is the JSON request format for exec plugins
type ExecResponse ¶
type ExecResponse struct {
Success bool `json:"success"`
Value string `json:"value,omitempty"`
Error string `json:"error,omitempty"`
}
ExecResponse is the JSON response format for exec plugins
type PluginConfig ¶
type PluginConfig map[string]interface{}
PluginConfig holds configuration for a plugin
type PluginDefinition ¶
type PluginDefinition struct {
Type string `mapstructure:"type"`
Config PluginConfig `mapstructure:",remain"`
}
PluginDefinition defines a plugin configuration from YAML
Click to show internal directories.
Click to hide internal directories.