Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
func Merge(option MergeOption) ([]digest.Digest, error)
func Pack ¶ added in v0.3.0
func Pack(option PackOption) error
func Unpack ¶ added in v0.3.0
func Unpack(option UnpackOption) error
Types ¶
type Feature ¶ added in v0.6.1
type Feature string
const ( // The option `--type tar-rafs` enables converting OCI tar blob // stream into nydus blob directly, the tar2rafs eliminates the // need to decompress it to a local directory first, thus greatly // accelerating the pack process. FeatureTar2Rafs Feature = "--type tar-rafs" // The option `--batch-size` enables merging multiple small chunks // into a big batch chunk, which can reduce the the size of the image // and accelerate the runtime file loading. FeatureBatchSize Feature = "--batch-size" // The option `--encrypt` enables converting directories, tar files // or OCI images into encrypted nydus blob. FeatureEncrypt Feature = "--encrypt" )
type Features ¶ added in v0.6.1
type Features map[Feature]struct{}
func DetectFeatures ¶ added in v0.6.1
func DetectFeatures(builder string, required Features, getHelp func(string) []byte) (Features, error)
DetectFeatures returns supported feature list from required feature list. The supported feature list is detected from the help message of `nydus-image create`.
func NewFeatures ¶ added in v0.9.0
type MergeOption ¶
type PackOption ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.