tarfs

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 31 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TarfsStatusInit    = 0
	TarfsStatusPrepare = 1
	TarfsStatusReady   = 2
	TarfsStatusFailed  = 3
)
View Source
const (
	MaxManifestConfigSize   = 0x100000
	TarfsLayerBootstrapName = "layer.boot"
	TarfsImageBootstrapName = "image.boot"
	TarfsLayerDiskName      = "layer.disk"
	TarfsImageDiskName      = "image.disk"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(insecure, checkTarfsHint bool, cacheDirPath, nydusImagePath string, maxConcurrentProcess int64) *Manager

func (*Manager) CheckTarfsHintAnnotation

func (t *Manager) CheckTarfsHintAnnotation(ctx context.Context, ref string, manifestDigest digest.Digest) (bool, error)

func (*Manager) DetachLayer

func (t *Manager) DetachLayer(snapshotID string) error

func (*Manager) ExportBlockData

func (t *Manager) ExportBlockData(s storage.Snapshot, perLayer bool, labels map[string]string, storageLocater func(string) string) ([]string, error)

func (*Manager) GetConcurrentLimiter

func (t *Manager) GetConcurrentLimiter(ref string) *semaphore.Weighted

func (*Manager) ImageDiskFilePath

func (t *Manager) ImageDiskFilePath(blobID string) string

func (*Manager) LayerDiskFilePath added in v0.13.5

func (t *Manager) LayerDiskFilePath(blobID string) string

func (*Manager) MergeLayers

func (t *Manager) MergeLayers(s storage.Snapshot, storageLocater func(string) string) error

func (*Manager) MountTarErofs

func (t *Manager) MountTarErofs(snapshotID string, s *storage.Snapshot, labels map[string]string, rafs *rafs.Rafs) error

func (*Manager) PrepareLayer

func (t *Manager) PrepareLayer(snapshotID, ref string, manifestDigest, layerDigest digest.Digest, upperDirPath string) error

func (*Manager) UmountTarErofs

func (t *Manager) UmountTarErofs(snapshotID string) error

Jump to

Keyboard shortcuts

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