dockercontainer

package
v0.0.0-...-0117b6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

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

func Name

func Name() string

Name returns the name of the plugin

Types

type DockerContainerPluginInput

type DockerContainerPluginInput struct {
	contracts.PluginInput
	Action           string
	ID               string
	WorkingDirectory string
	TimeoutSeconds   interface{}
	Container        string
	Cmd              string
	Image            string
	Memory           string
	CpuShares        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 {

	// ExecuteCommand is an object that can execute commands.
	CommandExecuter executers.T
	// contains filtered or unexported fields
}

Plugin is the type for the plugin.

func NewPlugin

func NewPlugin(context context.T) (*Plugin, error)

NewPlugin returns a new instance of the plugin.

func (*Plugin) Execute

func (p *Plugin) Execute(config contracts.Configuration, cancelFlag task.CancelFlag, output iohandler.IOHandler)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL