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: 7 modules, 13 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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