docker

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Command string
	Output  string
	Error   string
}

Result stores the output of commands run using docker exec

type Step

type Step struct {
	Task      string
	Name      string
	Image     string
	Command   []string
	Commands  [][]string
	Env       []string
	WorkDir   string
	Volumes   map[string]string
	ExtMounts []mount.Mount
	Follow    string
	Args      []string
}

Step describes the information required to run one task in docker container

func (Step) Exec

func (step Step) Exec() (*[]Result, error)

Exec method is used to execute the task described in the corresponding step

Jump to

Keyboard shortcuts

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