pause

package
v1.20.0-1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoSuchFileError

func IsNoSuchFileError(err error) bool

IsNoSuchFileError returns true if the error is of NoSuchFileError type

func UnsupportedPlatform

func UnsupportedPlatform(err error) bool

UnsupportedPlatform returns true if the error is of UnsupportedPlatformError type

Types

type Loader

type Loader interface {
	LoadImage(ctx context.Context, cfg *config.Config, dockerClient dockerapi.DockerClient) (*types.ImageInspect, error)
	IsLoaded(dockerClient dockerapi.DockerClient) (bool, error)
}

Loader defines an interface for loading the pause container image. This is mostly to facilitate mocking and testing of the LoadImage method

func New

func New() Loader

New creates a new pause image loader

type NoSuchFileError

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

NoSuchFileError wraps the error from the os package with the message "no such file error"

func NewNoSuchFileError

func NewNoSuchFileError(err error) NoSuchFileError

NewNoSuchFileError creates a new NoSuchFileError object

type UnsupportedPlatformError

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

UnsupportedPlatformError indicates an error when loading pause container image on an unsupported OS platform

func NewUnsupportedPlatformError

func NewUnsupportedPlatformError(err error) UnsupportedPlatformError

NewUnsupportedPlatformError creates a new UnsupportedPlatformError object

Directories

Path Synopsis
Package mock_pause is a generated GoMock package.
Package mock_pause is a generated GoMock package.

Jump to

Keyboard shortcuts

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