Versions in this module Expand all Collapse all v0 v0.2.0 Jul 19, 2022 Changes in this version + type Config struct + ArgsEscaped bool + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + Domainname string + Entrypoint []string + Env []string + Hostname string + Image string + Labels map[string]string + OnBuild []string + OpenStdin bool + StdinOnce bool + Tty bool + User string + Volumes []string + WorkingDir string + type ContainerConfig struct + ArgsEscaped bool + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + Domainname string + Entrypoint []string + Env []string + Hostname string + Image string + Labels map[string]string + OnBuild []string + OpenStdin bool + StdinOnce bool + Tty bool + User string + Volumes []string + WorkingDir string + type DockerAPI struct + func NewDockerAPI() (*DockerAPI, error) + func (api DockerAPI) CleanUp() error + func (api DockerAPI) Config(repository, tag string) ([]byte, error) + func (api DockerAPI) Exists(repository, tag string) bool + func (api DockerAPI) Find(repository, tag string) (string, error) + func (api DockerAPI) Image(repository, tag string) Image + func (api DockerAPI) ImageBlob(repository, tag string) (*ImageBlob, error) + func (api DockerAPI) LayerBlobs(repository, tag string) ([]io.Reader, error) + type History []struct + type Image struct + Repository string + Source Source + Tag string + func (i Image) Config() (*ImageConfig, error) + func (i Image) Exists() bool + func (i Image) Extract(dir string, overwriteSymlink bool) error + func (i Image) LayerBlobs() ([]io.Reader, error) + func (i Image) Unpack(dir string, overwriteSymlink bool) error + type ImageBlob struct + Blob io.ReadCloser + func (i *ImageBlob) Config() ([]byte, error) + func (i *ImageBlob) LayerBlobs() ([]io.Reader, error) + func (i *ImageBlob) Manifest() (Manifest, error) + type ImageConfig struct + Architecture string + Config Config + Container string + ContainerConfig ContainerConfig + Created time.Time + DockerVersion string + History History + OS string + Rootfs Rootfs + type Manifest struct + Config string + Layers []string + RepoTags []string + type Options struct + Extract untar.Options + RegistryPass string + RegistryURL string + RegistryUser string + TmpPath string + type Registry struct + Password string + URL *url.URL + Username string + func NewRegistry(baseURL, username, password, tmpRoot string) (*Registry, error) + func (r Registry) CleanUp() error + func (r Registry) Config(repository, tag string) ([]byte, error) + func (r Registry) Exists(repository, tag string) bool + func (r Registry) ExtractedBlob(repository string, digest digest.Digest) (io.Reader, error) + func (r Registry) Find(repository, tag string) error + func (r Registry) Image(repository, tag string) Image + func (r Registry) LayerBlobs(repository, tag string) ([]io.Reader, error) + func (r Registry) Layers(repository, tag string) ([]distribution.Descriptor, error) + func (r Registry) Manifest(repository, tag string) (*schema2.DeserializedManifest, error) + type Rootfs struct + DiffIds []string + Type string + type Source interface + CleanUp func() error + Config func(repository, tag string) ([]byte, error) + Exists func(repository, tag string) bool + Image func(repository, tag string) Image + LayerBlobs func(repository, tag string) ([]io.Reader, error) + type Undocker struct + Err io.Writer + Out io.Writer + func (u Undocker) Config(repo, tag string, opts Options) error + func (u Undocker) Extract(repo, tag, dest string, opts Options) error