Documentation ¶
Overview ¶
Package daemon provides facilities for reading/writing v1.Image from/to a running daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetImageLoader = func() (ImageLoader, error) { cli, err := client.NewEnvClient() if err != nil { return nil, err } cli.NegotiateAPIVersion(context.Background()) return cli, nil }
This is a variable so we can override in tests.
Functions ¶
Types ¶
type ImageLoader ¶
type ImageLoader interface {
ImageLoad(context.Context, io.Reader, bool) (types.ImageLoadResponse, error)
}
API interface for testing.
type ImageOption ¶
type ImageOption func(*imageOpener) error
func WithBufferedOpener ¶
func WithBufferedOpener() ImageOption
func WithUnbufferedOpener ¶
func WithUnbufferedOpener() ImageOption
type ImageSaver ¶
API interface for testing.
Click to show internal directories.
Click to hide internal directories.