tool

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

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"
)

type Features added in v0.6.1

type Features []Feature

func DetectFeatures added in v0.6.1

func DetectFeatures(builder string, required Features) Features

DetectFeatures returns supported feature list from required feature list.

func (*Features) Contains added in v0.6.1

func (features *Features) Contains(feature Feature) bool

func (*Features) Remove added in v0.6.1

func (features *Features) Remove(feature Feature)

type MergeOption

type MergeOption struct {
	BuilderPath string

	SourceBootstrapPaths []string
	RafsBlobDigests      []string
	RafsBlobTOCDigests   []string
	RafsBlobSizes        []int64

	TargetBootstrapPath string
	ChunkDictPath       string
	ParentBootstrapPath string
	PrefetchPatterns    string
	OutputJSONPath      string
	Timeout             *time.Duration
}

type PackOption added in v0.3.0

type PackOption struct {
	BuilderPath string

	BootstrapPath    string
	BlobPath         string
	FsVersion        string
	SourcePath       string
	ChunkDictPath    string
	PrefetchPatterns string
	Compressor       string
	OCIRef           bool
	AlignedChunk     bool
	ChunkSize        string
	BatchSize        string
	Timeout          *time.Duration

	Features Features
}

type UnpackOption added in v0.3.0

type UnpackOption struct {
	BuilderPath       string
	BootstrapPath     string
	BlobPath          string
	BackendConfigPath string
	TarPath           string
	Timeout           *time.Duration
}

Jump to

Keyboard shortcuts

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