image

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Repository name seperator for container images
	RepositorySeparator = '/'

	// Tag separator for container images
	TagSeparator = ':'

	// Used to separate image name parts in a single file name
	FileSeparator = "@"
)

Variables

This section is empty.

Functions

func CreateExportCommand

func CreateExportCommand(version string) (*exec.Cmd, error)

func GetOpenShiftImageNames

func GetOpenShiftImageNames(version string) []string

GetOpenShiftImageNames returns the full images names for the images requires for a fully functioning OpenShift instance

Types

type DockerImageHandler

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

func NewDockerImageHandler

func NewDockerImageHandler(driver drivers.Driver) (*DockerImageHandler, error)

func (*DockerImageHandler) AreImagesCached

func (handler *DockerImageHandler) AreImagesCached(config *ImageCacheConfig) bool

func (*DockerImageHandler) ExportImages

func (handler *DockerImageHandler) ExportImages(config *ImageCacheConfig) error

func (*DockerImageHandler) ImportImages

func (handler *DockerImageHandler) ImportImages(config *ImageCacheConfig) error

func (*DockerImageHandler) IsPulled

func (handler *DockerImageHandler) IsPulled(image string) (bool, error)

IsPulled returns true is the specified image is already cached in the Docker daemon, false otherwise.

type ImageCacheConfig

type ImageCacheConfig struct {
	HostCacheDir      string
	CachedImages      []string
	Out               io.Writer
	ImageMissStrategy ImageMissStrategy
}

type ImageHandler

type ImageHandler interface {
	// Imports cached images from the host into the Docker daemon of the VM.
	ImportImages(config *ImageCacheConfig) error

	// Exports the images specified as part of the ImageCacheConfig from the VM to the host.
	ExportImages(config *ImageCacheConfig) error

	// AreImagesCached returns true if all images specified in the config are cached, false otherwise.
	AreImagesCached(config *ImageCacheConfig) bool
}

ImageHandler is responsible for the import and export of images into the Docker daemon of the VM

type ImageMissStrategy

type ImageMissStrategy int
const (
	SKIP ImageMissStrategy = iota
	PULL
)

Jump to

Keyboard shortcuts

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