Documentation ¶
Index ¶
- type Parameter
- type Plugin
- type Registry
- func (r Registry) Add(pluginType string, contents string) error
- func (r Registry) IsDefined(pluginType string) bool
- func (r Registry) Load(path string) error
- func (r Registry) LoadAll(dir string, pattern string) error
- func (r Registry) Render(pluginType string, params map[string]interface{}) (Plugin, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter struct { Label string Description string Required bool Type string // "string", "int", "bool", "strings", or "enum" ValidValues []string `yaml:"valid_values"` // only useable if Type == "enum" Default interface{} // Must be valid according to Type & ValidValues }
Parameter is a basic description of a plugin's parameter.
type Plugin ¶
type Plugin struct { Version string Title string Description string Parameters map[string]Parameter Pipeline []operator.Config }
Plugin is the rendered result of a plugin template.
type Registry ¶
Registry is a registry of plugin templates.
func NewPluginRegistry ¶
NewPluginRegistry creates a new plugin registry from a plugin directory.
func (Registry) IsDefined ¶
IsDefined returns a boolean indicating if a plugin is defined and registered.
Click to show internal directories.
Click to hide internal directories.