Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command string
Command is the command to be executed by conftest, passed as a single string.
type MetaData ¶
type MetaData struct { // Name is the name of the plugin Name string `yaml:"name"` // Version is a SemVer 2 version of the plugin. Version string `yaml:"version"` // Usage provides a short description // of what the plugin does Usage string `yaml:"usage"` // Description provides a long description // of what the plugin does Description string `yaml:"description"` // Command is the command to add to conftest Command Command `yaml:"command"` }
MetaData contains the required metadata for conftest plugins
type Plugin ¶
type Plugin struct { // Metadata contains the contents of the plugin.yaml metatdata file MetaData *MetaData // Dir contains the full path to the plugin Dir string // contains filtered or unexported fields }
Plugin represents a conftest plugin
func FindPlugins ¶
FindPlugins returns a list of all plugins available on the local file system.
func LoadPlugin ¶
LoadPlugin loads the plugin.yaml from the given path and parses the metadata into a Plugin struct
func (*Plugin) SetStdErr ¶
SetStdErr configures to where the plugin writes errors to when the command is executed
Click to show internal directories.
Click to hide internal directories.