action

package
v0.0.0-...-fcacf22 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvExecPid = "_QCONTAINER_PID"
	EnvExecCmd = "_QCONTAINER_CMD"
)

Variables

This section is empty.

Functions

func Execute

func Execute(a Interface) error

func ToContainerId

func ToContainerId(n int) string

Types

type Interface

type Interface interface {
	Name() string
	PreRun() error
	Run() error
	PostRun() error
}

func NewCommitAction

func NewCommitAction(containerId, imageName string) Interface

func NewExecAction

func NewExecAction(containerId string, cmdArray []string) Interface

func NewLogAction

func NewLogAction(containerId string) Interface

func NewNetworkCreateAction

func NewNetworkCreateAction(name string, options *NetworkCreateActionOptions) Interface

func NewNetworkListAction

func NewNetworkListAction() Interface

func NewNetworkRemoveAction

func NewNetworkRemoveAction(name string) Interface

func NewPSAction

func NewPSAction() Interface

func NewRMAction

func NewRMAction(containerId string) Interface

func NewRunAction

func NewRunAction(args []string, options *RunActionOptions) Interface

func NewStopAction

func NewStopAction(containerId string) Interface

type NetworkCreateActionOptions

type NetworkCreateActionOptions struct {
	Subnet string
	Driver string
}

type RunActionOptions

type RunActionOptions struct {
	Interactive bool
	TTY         bool
	Detach      bool
	CpuSet      string
	MemoryLimit string
	CpuShare    string
	Volume      string
	Name        string
	Network     string
	Publish     []string
	Envs        []string
}

Jump to

Keyboard shortcuts

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