Documentation ¶
Index ¶
- func ErrorEmptyLayerDiff(msg string) error
- func ErrorImageIdNotExist(format string, o ...interface{}) error
- func ErrorImageNameNotExist(format string, o ...interface{}) error
- func IsEmptyLayerDiff(err error) bool
- func IsImageIdNotExist(err error) bool
- func IsImageNameNotExist(err error) bool
- type Image
- type ImageReader
- type ImageStore
- type ImageStoreRO
- type ImageStoreRW
- type ImageTagStore
- type LayerSource
- type Tag
- type TagName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorEmptyLayerDiff ¶
func ErrorImageIdNotExist ¶
func ErrorImageNameNotExist ¶
func IsEmptyLayerDiff ¶
func IsImageIdNotExist ¶
func IsImageNameNotExist ¶
Types ¶
type Image ¶
type Image struct { ManifestDigest digest.Digest Repo string Ref string //TODO: Tag TagName Manifest ispecs.Manifest Created time.Time LastUsed time.Time // contains filtered or unexported fields }
func GetLocalImage ¶
func GetLocalImage(store ImageStoreRO, image string) (img Image, err error)
type ImageReader ¶
type ImageStore ¶
type ImageStore interface { ImageStoreRO OpenLockedImageStore() (ImageStoreRW, error) ImageGC(before time.Time) error DelImage(id ...digest.Digest) error }
type ImageStoreRO ¶
type ImageStoreRW ¶
type ImageStoreRW interface { ImageStoreRO MarkUsedImage(imageId digest.Digest) error ImportImage(name string) (Image, error) AddImageConfig(m ispecs.Image, parentImageId *digest.Digest) (Image, error) NewLayerSource(rootfs string) (LayerSource, error) NewLayerSourceOverlayed(rootfs, addDir string, addPattern []string, dest string, usr *idutils.UserIds) (LayerSource, error) NewLayerSourceFromImage(rootfs string, img Image, filePattern []string, dest string, usr *idutils.UserIds) (LayerSource, error) // Creates a new layer or returns errEmptyLayerDiff if nothing has changed AddImageLayer(src LayerSource, parentImageId *digest.Digest, author, comment string) (Image, error) TagImage(imageId digest.Digest, tag string) (Image, error) UntagImage(tag string) error Close() error }
type ImageTagStore ¶
Directories ¶
Path | Synopsis |
---|---|
dockerfile/shell
This package is part of a workaround to get the docker parser without its dependencies.
|
This package is part of a workaround to get the docker parser without its dependencies. |
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.