Documentation ¶
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 implements image i/o (overmount.Importer and overmount.Exporter) through docker. Note that no attempt will be made to pull the images from remote sources; they must exist on your client's daemon before they can be used by this import/export interface.
func NewDocker ¶
NewDocker creates a new *Docker for use. If c is nil, `client.NewEnvClient()` will be called to initiate a new client.
func (*Docker) Export ¶
Export produces a tar represented as an io.ReadCloser from the Layer provided.
func (*Docker) Import ¶
func (d *Docker) Import(r *om.Repository, reader io.ReadCloser) ([]*om.Layer, error)
Import takes a tar represented as an io.Reader, and converts and unpacks it into the overmount repository. Returns the top-most layer and any error.
Click to show internal directories.
Click to hide internal directories.