pause

package
v1.17.3-coveo.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 7 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(cfg *config.Config, dockerClient engine.DockerClient) (*docker.Image, 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