containertools

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 13

Documentation

Index

Constants

View Source
const (
	// Podman cli tool
	Podman = "podman"
	// Docker cli tool
	Docker = "docker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleReader added in v1.5.3

type BundleReader struct {
}

func NewBundleReader added in v1.5.3

func NewBundleReader() *BundleReader

func (*BundleReader) GetBundle added in v1.5.3

func (b *BundleReader) GetBundle(image, outputDir string) error

type CommandRunner

type CommandRunner struct {
	// contains filtered or unexported fields
}

CommandRunner is configured to select a container cli tool and execute commands with that tooling.

func NewCommandRunner

func NewCommandRunner(containerTool string) *CommandRunner

NewCommandRunner takes the containerTool as an input string and returns a CommandRunner to run commands with that cli tool

func (*CommandRunner) Pull

func (r *CommandRunner) Pull(image string) error

Pull takes a container image path hosted on a container registry and runs the pull command to download it onto the local environment

func (*CommandRunner) Save added in v1.5.3

func (r *CommandRunner) Save(image, tarFile string) error

Save takes a local container image and runs the save commmand to convert the image into a specified tarball and push it to the local directory

Jump to

Keyboard shortcuts

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