Documentation
¶
Overview ¶
Package runtime provides basic interfaces to interact with the different container runtimes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
Docker is the another implementation for docker, the accessor of DockerCli.
func (*Docker) ImageExist ¶
ImageExist implements the Local.ImageExist.
func (*Docker) ListImages ¶
type Local ¶
type Local interface {
ImageExist(imageName string) (bool, error)
ImageSave(imageName string, content io.Writer) error
}
Local means that the container runtime is running at the "client side"/"kubectl side". Local check the required image exists, and fetch the content of the image.
type Remote ¶
type Remote interface {
// LoadImage loads image from bytes.
LoadImage(ctx context.Context, content io.ReadCloser) error
ListImages(ctx context.Context) ([]agent.ContainerImage, error)
}
Remote means that the container runtime is running at the "server side"/"kubelet side". Remote load the content of the image into the container runtime.
Click to show internal directories.
Click to hide internal directories.