Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
// ID is a unique 64 character identifier of the image
ID string `json:"id,omitempty"`
// Parent is the ID of the parent image
Parent string `json:"parent,omitempty"`
// Comment is the commit message that was set when committing the image
Comment string `json:"comment,omitempty"`
// Created is the timestamp at which the image was created
Created time.Time `json:"created"`
// Container is the id of the container used to commit
Container string `json:"container,omitempty"`
// ContainerConfig is the configuration of the container that is committed into the image
ContainerConfig container.Config `json:"container_config,omitempty"`
// DockerVersion specifies the version of Docker that was used to build the image
DockerVersion string `json:"docker_version,omitempty"`
History []imageHistory `json:"history,omitempty"`
// Author is the name of the author that was specified when committing the image
Author string `json:"author,omitempty"`
// Config is the configuration of the container received from the client
Config *container.Config `json:"config,omitempty"`
// Architecture is the hardware that the image is built and runs on
Architecture string `json:"architecture,omitempty"`
// OS is the operating system used to build and run the image
OS string `json:"os,omitempty"`
// Size is the total size of the image including all layers it is composed of
Size int64 `json:",omitempty"`
RootFS *imageRootFS `json:"rootfs,omitempty"`
// contains filtered or unexported fields
}
Image is the image's config object
func NewFromJSON ¶
NewFromJSON creates an Image configuration from json.
type Manifest ¶
type Manifest struct {
Config string `json:"Config,omitempty"`
Layers []string `json:"Layers,omitempty"`
RepoTags []string `json:"RepoTags,omitempty"`
}
Manifest is the image manifest struct
type Tar ¶
type Tar struct {
Tag string
DockerVersion string
Created string
Manifest Manifest
Config *Image
Layers []Layer
RefTrees []*filetree.FileTree
SizeBytes uint64
UserSizeByes uint64 // this is all bytes except for the base image
}
Tar is the image's tar object
Click to show internal directories.
Click to hide internal directories.