Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoSuchFileError ¶
IsNoSuchFileError returns true if the error is of NoSuchFileError type
func UnsupportedPlatform ¶
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) (*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
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
Click to show internal directories.
Click to hide internal directories.