Documentation ¶
Index ¶
- func CreateID(v1Image image.V1Image, layerID layer.ChainID, parent digest.Digest) (digest.Digest, error)
- func HistoryFromConfig(imageJSON []byte, emptyLayer bool) (image.History, error)
- func MakeConfigFromV1Config(imageJSON []byte, rootfs *image.RootFS, history []image.History) ([]byte, error)
- func MakeV1ConfigFromConfig(img *image.Image, v1ID, parentV1ID string, throwaway bool) ([]byte, error)
- func ValidateID(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateID ¶
func CreateID(v1Image image.V1Image, layerID layer.ChainID, parent digest.Digest) (digest.Digest, error)
CreateID creates an ID from v1 image, layerID and parent ID. Used for backwards compatibility with old clients.
func HistoryFromConfig ¶
HistoryFromConfig creates a History struct from v1 configuration JSON
func MakeConfigFromV1Config ¶
func MakeConfigFromV1Config(imageJSON []byte, rootfs *image.RootFS, history []image.History) ([]byte, error)
MakeConfigFromV1Config creates an image config from the legacy V1 config format.
func MakeV1ConfigFromConfig ¶
func MakeV1ConfigFromConfig(img *image.Image, v1ID, parentV1ID string, throwaway bool) ([]byte, error)
MakeV1ConfigFromConfig creates an legacy V1 image config from an Image struct
func ValidateID ¶
ValidateID checks whether an ID string is a valid image ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.