v1

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func HistoryFromConfig(imageJSON []byte, emptyLayer bool) (image.History, error)

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

func ValidateID(id string) error

ValidateID checks whether an ID string is a valid image ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL