Documentation ¶
Index ¶
Constants ¶
View Source
const ( //Action values CREATE = "Create" START = "Start" RUN = "Run" STOP = "Stop" RM = "Rm" EXEC = "Exec" INSPECT = "Inspect" LOGS = "Logs" PS = "Ps" STATS = "Stats" PULL = "Pull" IMAGES = "Images" RMI = "Rmi" )
View Source
const (
ACTION_REQUIRES_PARAMETER = "Action %s requires parameter %s"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerContainerPluginInput ¶
type DockerContainerPluginInput struct { contracts.PluginInput Action string ID string WorkingDirectory string TimeoutSeconds interface{} Container string Cmd string Image string Memory string Volume []string Env string User string Publish string }
DockerContainerPluginInput represents one set of commands executed by the RunCommand plugin.
type Plugin ¶
type Plugin struct {
pluginutil.DefaultPlugin
}
Plugin is the type for the plugin.
func NewPlugin ¶
func NewPlugin(pluginConfig pluginutil.PluginConfig) (*Plugin, error)
NewPlugin returns a new instance of the plugin.
func (*Plugin) Execute ¶
func (p *Plugin) Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag, pluginRunner runpluginutil.PluginRunner) (res contracts.PluginResult)
Execute runs multiple sets of commands and returns their outputs. res.Output will contain a slice of DockerContainerPluginOutput.
Click to show internal directories.
Click to hide internal directories.