containerrootfs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCacheForContext

func SetCacheForContext(ctx context.Context, l *Cache) context.Context

func ToDirectory

func ToDirectory(ctx context.Context, src, dest string) error

nolint:cyclop, gocognit

Types

type Cache

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

func GetCacheFromContext

func GetCacheFromContext(ctx context.Context) (*Cache, bool)

func NewCache

func NewCache() *Cache

func (*Cache) CleanupAll

func (cache *Cache) CleanupAll() error

func (*Cache) ToTempDirectory

func (cache *Cache) ToTempDirectory(ctx context.Context, src string) (Rootfs, error)

type CacheContextKeyType

type CacheContextKeyType string
const CacheContextKey CacheContextKeyType = "VMClarityContainerRootfsCacheKey"

type Rootfs

type Rootfs interface {
	Dir() string
	Cleanup() error
}

func ToTempDirectory

func ToTempDirectory(ctx context.Context, src string) (Rootfs, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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