Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEmptyLayerDiff ¶
func IsNotExist ¶
Types ¶
type ErrEmptyLayerDiff ¶
type ErrEmptyLayerDiff error
type ErrNotExist ¶
type ErrNotExist error
type Image ¶
func GetLocalImage ¶
func GetLocalImage(store ImageStoreRO, image string) (img Image, err error)
type ImageInfo ¶
type ImageInfo struct { Tag *TagName ManifestDigest digest.Digest Manifest ispecs.Manifest Created time.Time LastUsed time.Time }
func NewImageInfo ¶
type ImageStore ¶
type ImageStore interface { ImageStoreRO OpenLockedImageStore() (ImageStoreRW, error) ImageGC(ttl, refTTL time.Duration, maxPerRepo int) error DelImage(id ...digest.Digest) error }
type ImageStoreRO ¶
type ImageStoreRW ¶
type ImageStoreRW interface { ImageStoreRO ImageUnpacker ImportImage(name string) (Image, error) SupportsTransport(transportName string) bool AddImageConfig(m ispecs.Image, parentImageId *digest.Digest) (Image, error) FS(imageId digest.Digest) (fs.FsNode, error) // Creates a new layer as diff to parent. Returns errEmptyLayerDiff if nothing has changed AddLayer(rootfs fs.FsNode, parentImageId *digest.Digest, author, createdByOp string) (Image, error) TagImage(imageId digest.Digest, tag string) (ImageInfo, error) UntagImage(tag string) error Close() error }
type ImageUnpacker ¶
type LayerSource ¶
type UnpackableImage ¶
type UnpackableImage struct { *Image // contains filtered or unexported fields }
func NewUnpackableImage ¶
func NewUnpackableImage(img *Image, unpacker ImageUnpacker) *UnpackableImage
func (*UnpackableImage) Config ¶
func (img *UnpackableImage) Config() *ispecs.Image
func (*UnpackableImage) Unpack ¶
func (img *UnpackableImage) Unpack(dest string) error
Directories ¶
Path | Synopsis |
---|---|
See https://github.com/containers/image/blob/master/docs/policy.json.md
|
See https://github.com/containers/image/blob/master/docs/policy.json.md |
Click to show internal directories.
Click to hide internal directories.