Documentation ¶
Index ¶
Constants ¶
View Source
const ( XSNone ExecutionState = "xs.none" XSCreated = "xs.created" XSStarted = "xs.started" XSStopping = "xs.stopping" XSStopped = "xs.stopped" XSRemoved = "xs.removed" XSExited = "xs.exited" XSExitedCrash = "xs.exited.crash" XSError = "xs.error" )
View Source
const ( XECreated ExecutionEvent = "xe.container.created" XEStarted = "xe.container.started" XEStopping = "xe.container.stopping" XEStopped = "xe.container.stopped" XERemoved = "xe.container.removed" XEExited = "xe.container.exited" XEExitedCrash = "xe.container.exited.crash" XEAPIError = "xe.api.error" XEInterrupt = "xe.interrupt" )
View Source
const (
ContainerNamePat = "ds.run_%v_%v"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execution ¶
type Execution struct { ContainerInfo *dockerapi.Container ContainerName string ContainerID string State ExecutionState Crashed bool StopTimeout uint /// the following fields are forwarded to dockerapi.HostConfig and take /// the same parameters as docker's `--pid`, `--network` and `--ipc` CLI /// flags PidMode string NetworkMode string IpcMode string APIClient *dockerapi.Client // contains filtered or unexported fields }
func NewExecution ¶
func NewExecution( xc *app.ExecutionContext, logger *log.Entry, client *dockerapi.Client, imageRef string, options *ExecutionOptions, eventCh chan *ExecutionEvenInfo, cleanupOnSysExit bool, printState bool) (*Execution, error)
func (*Execution) ShowContainerLogs ¶
func (ref *Execution) ShowContainerLogs()
type ExecutionEvenInfo ¶
type ExecutionEvenInfo struct { Event ExecutionEvent Data map[string]string }
type ExecutionEvent ¶
type ExecutionEvent string
type ExecutionOptions ¶
type ExecutionOptions struct { ContainerName string Entrypoint []string Cmd []string PublishPorts map[dockerapi.Port][]dockerapi.PortBinding EnvVars []string Volumes []config.VolumeMount LiveLogs bool Terminal bool IO ExecutionIO }
type ExecutionState ¶
type ExecutionState string
type VolumeInfo ¶
Click to show internal directories.
Click to hide internal directories.