Documentation ¶
Index ¶
- type Config
- type ContainerConfig
- type DockerAPI
- 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
- type Image
- type ImageBlob
- type ImageConfig
- type Manifest
- type Options
- type Registry
- 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
- type Source
- type Undocker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Hostname string `json:"Hostname"` Domainname string `json:"Domainname"` User string `json:"User"` AttachStdin bool `json:"AttachStdin"` AttachStdout bool `json:"AttachStdout"` AttachStderr bool `json:"AttachStderr"` Tty bool `json:"Tty"` OpenStdin bool `json:"OpenStdin"` StdinOnce bool `json:"StdinOnce"` Env []string `json:"Env"` Cmd []string `json:"Cmd"` ArgsEscaped bool `json:"ArgsEscaped"` Image string `json:"Image"` Volumes []string `json:"Volumes"` WorkingDir string `json:"WorkingDir"` Entrypoint []string `json:"Entrypoint"` OnBuild []string `json:"OnBuild"` Labels map[string]string `json:"Labels"` }
type ContainerConfig ¶
type ContainerConfig struct { Hostname string `json:"Hostname"` Domainname string `json:"Domainname"` User string `json:"User"` AttachStdin bool `json:"AttachStdin"` AttachStdout bool `json:"AttachStdout"` AttachStderr bool `json:"AttachStderr"` Tty bool `json:"Tty"` OpenStdin bool `json:"OpenStdin"` StdinOnce bool `json:"StdinOnce"` Env []string `json:"Env"` Cmd []string `json:"Cmd"` ArgsEscaped bool `json:"ArgsEscaped"` Image string `json:"Image"` Volumes []string `json:"Volumes"` WorkingDir string `json:"WorkingDir"` Entrypoint []string `json:"Entrypoint"` OnBuild []string `json:"OnBuild"` Labels map[string]string `json:"Labels"` }
type DockerAPI ¶
type DockerAPI struct {
// contains filtered or unexported fields
}
func NewDockerAPI ¶
type Image ¶
func (Image) Config ¶
func (i Image) Config() (*ImageConfig, error)
func (Image) LayerBlobs ¶
LayerBlobs return the layers of the image in order from the lower
type ImageBlob ¶
type ImageBlob struct {
Blob io.ReadCloser
}
type ImageConfig ¶
type ImageConfig struct { Architecture string `json:"architecture"` Config Config `json:"config"` Container string `json:"container"` ContainerConfig ContainerConfig `json:"container_config"` Created time.Time `json:"created"` DockerVersion string `json:"docker_version"` History History `json:"history"` OS string `json:"os"` Rootfs Rootfs `json:"rootfs"` }
type Registry ¶
type Registry struct { URL *url.URL Username string Password string // contains filtered or unexported fields }
func NewRegistry ¶
func (Registry) ExtractedBlob ¶
func (Registry) LayerBlobs ¶
func (Registry) Layers ¶
func (r Registry) Layers(repository, tag string) ([]distribution.Descriptor, error)
Click to show internal directories.
Click to hide internal directories.