utils

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOverlaybd added in v1.0.0

func ApplyOverlaybd(ctx context.Context, dir string, opts ...string) error

func ApplyTurboOCI added in v1.0.0

func ApplyTurboOCI(ctx context.Context, dir, gzipMetaFile string, opts ...string) error

func Commit

func Commit(ctx context.Context, dir, toDir string, sealed bool, opts ...string) error

func ConvertLayer added in v1.0.3

func ConvertLayer(ctx context.Context, opt *ConvertOption, fs_type string) error

ConvertLayer produce a turbooci layer, target is path of ext4.fs.meta

func Create

func Create(ctx context.Context, dir string, opts ...string) error

func DiskUsageWithoutMountpoint added in v1.0.1

func DiskUsageWithoutMountpoint(ctx context.Context, roots ...string) (fs.Usage, error)

func GenerateTarMeta added in v1.0.3

func GenerateTarMeta(ctx context.Context, srcTarFile string, dstTarMeta string) error

func Seal

func Seal(ctx context.Context, dir, toDir string, opts ...string) error

Types

type ConvertOption added in v1.0.3

type ConvertOption struct {
	// src options
	// (TODO) LayerPath   string // path of layer.tgz or layer.tar
	TarMetaPath string // path of layer.tar.meta

	Config  sn.OverlayBDBSConfig
	Workdir string

	// output options
	Ext4FSMetaPath string
}

Jump to

Keyboard shortcuts

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