Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply performs the specified mutation(s) to a base image, returning the resulting image.
func SquashfsLayer ¶
SquashfsLayer converts the base layer into a layer using the squashfs format. A dir must be specified, which is used as a working directory during conversion. The caller is responsible for cleaning up dir.
By default, this will attempt to locate a suitable TAR to SquashFS converter such as 'tar2sqfs' or `sqfstar` via exec.LookPath. To specify a path to a specific converter program, consider using OptSquashfsLayerConverter.
By default, AUFS whiteout markers in the base TAR layer will be converted to OverlayFS whiteout markers in the SquashFS layer. This can be disabled, e.g. where it is known that the layer is part of a squashed image that will not have any whiteouts, using OptSquashfsSkipWhiteoutConversion.
Note - when whiteout conversion is performed the base layer will be read twice. Callers should ensure it is cached, and is not a streaming layer.
Types ¶
type Mutation ¶
type Mutation func(*image) error
func ReplaceLayers ¶
ReplaceLayers replaces all layers in the image with l. The layer is annotated with the specified values.
func SetConfig ¶ added in v0.3.0
SetConfig replaces the config with the specified raw content of type t.
func SetHistory ¶
SetHistory replaces the history in an image with the specified entry.
type SquashfsConverterOpt ¶ added in v0.4.0
type SquashfsConverterOpt func(*squashfsConverter) error
SquashfsConverterOpt are used to specify squashfs converter options.
func OptSquashfsLayerConverter ¶ added in v0.4.0
func OptSquashfsLayerConverter(converter string) SquashfsConverterOpt
OptSquashfsLayerConverter specifies the converter program to use when converting from TAR to SquashFS format.
func OptSquashfsSkipWhiteoutConversion ¶ added in v0.6.0
func OptSquashfsSkipWhiteoutConversion(b bool) SquashfsConverterOpt
OptSquashfsSkipWhiteoutConversion is set to skip the default conversion of whiteout / opaque markers from AUFS to OverlayFS format.