# README
daemon
The daemon
package enables reading/writing images from/to the docker daemon.
It is not fully fleshed out, but is useful for interoperability, see various issues:
# Functions
Image provides access to an image reference from the Docker daemon, applying functional options to the underlying imageOpener before resolving the reference into a v1.Image.
Tag adds a tag to an already existent image.
WithBufferedOpener buffers the image.
WithClient is a functional option to allow injecting a docker client.
WithContext is a functional option to pass through a context.Context.
WithUnbufferedOpener streams the image to avoid buffering.
Write saves the image into the daemon as the given tag.
# Interfaces
Client represents the subset of a docker client that the daemon package uses.
# Type aliases
ImageOption is an alias for Option.
Option is a functional option for daemon operations.