package image
import "github.com/docker/docker/image"
Index ¶
- func StoreImage(img *Image, jsonData []byte, layerData archive.ArchiveReader, root, layer string) error
- type Graph
- type Image
- func LoadImage(root string) (*Image, error)
- func NewImgJSON(src []byte) (*Image, error)
- func (img *Image) Depth() (int, error)
- func (img *Image) GetParent() (*Image, error)
- func (img *Image) GetParentsSize(size int64) int64
- func (img *Image) History() ([]*Image, error)
- func (img *Image) SaveSize(root string) error
- func (img *Image) SetGraph(graph Graph)
- func (img *Image) TarLayer() (arch archive.Archive, err error)
- func (img *Image) WalkHistory(handler func(*Image) error) (err error)
Functions ¶
func StoreImage ¶
func StoreImage(img *Image, jsonData []byte, layerData archive.ArchiveReader, root, layer string) error
Types ¶
type Graph ¶
type Graph interface { Get(id string) (*Image, error) ImageRoot(id string) string Driver() graphdriver.Driver }
type Image ¶
type Image struct { ID string `json:"id"` Parent string `json:"parent,omitempty"` Comment string `json:"comment,omitempty"` Created time.Time `json:"created"` Container string `json:"container,omitempty"` ContainerConfig runconfig.Config `json:"container_config,omitempty"` DockerVersion string `json:"docker_version,omitempty"` Author string `json:"author,omitempty"` Config *runconfig.Config `json:"config,omitempty"` Architecture string `json:"architecture,omitempty"` OS string `json:"os,omitempty"` Size int64 // contains filtered or unexported fields }
func LoadImage ¶
func NewImgJSON ¶
Build an Image object from raw json data
func (*Image) Depth ¶
Depth returns the number of parents for a current image
func (*Image) GetParent ¶
func (*Image) GetParentsSize ¶
func (*Image) History ¶
Image includes convenience proxy functions to its graph These functions will return an error if the image is not registered (ie. if image.graph == nil)
func (*Image) SaveSize ¶
SaveSize stores the current `size` value of `img` in the directory `root`.
func (*Image) SetGraph ¶
func (*Image) TarLayer ¶
TarLayer returns a tar archive of the image's filesystem layer.
func (*Image) WalkHistory ¶
Source Files ¶
- Version
- v0.11.1
- Published
- May 8, 2014
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 1 minute ago –
Tools for package owners.