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, 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, 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
func (LocalDocker) Run ¶ added in v0.20.0
func (l LocalDocker) Run(image string, args ...string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.