Documentation ¶
Index ¶
- type Docker
- type LocalDocker
- func (l LocalDocker) Pull(image string, retries int) error
- func (l LocalDocker) PullIfNotPresent(image string, retries int) error
- func (l LocalDocker) Push(image string, retries int) error
- func (l LocalDocker) Rmi(image string, retries int) error
- func (l LocalDocker) Run(image string, entryPoint string, env map[string]string, args ...string) ([]string, error)
- func (l LocalDocker) Save(images []string, filename string) error
- func (l LocalDocker) Tag(src, dest string, retries int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker interface { PullIfNotPresent(image string, retries int) error Pull(image string, retries int) error Push(image string, retries int) error Tag(src, dest string, retries int) error Rmi(image string, retries int) error Save(images []string, filename string) error Run(image string, entryPoint string, env map[string]string, args ...string) ([]string, error) }
type LocalDocker ¶
type LocalDocker struct { }
func (LocalDocker) Pull ¶
func (l LocalDocker) Pull(image string, retries int) error
Pull pulls an image, retrying up to retries times
func (LocalDocker) PullIfNotPresent ¶
func (l LocalDocker) PullIfNotPresent(image string, retries int) error
PullIfNotPresent will pull an image if it is not present locally retrying up to "retries" times. Returns errors from pulling.
func (LocalDocker) Push ¶
func (l LocalDocker) Push(image string, retries int) error
Push pushes an image, retrying up to retries times
func (LocalDocker) Rmi ¶
func (l LocalDocker) Rmi(image string, retries int) error
Rmi removes an image, retrying up to retries times
Click to show internal directories.
Click to hide internal directories.