ociarchive

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *archive

Types

type Archive

type Archive interface {
	Initialize(ctx context.Context) error
	Pack(ctx context.Context, log *zap.Logger, filepaths []FileRef) error
	Unpack(ctx context.Context, repo *configs.OCIRegistryRepository, tag string) error
	Ref() oras.ReadOnlyTarget
	TmpDir() string
	Cleanup(context.Context) error
	BasePath() string
}

type FileRef

type FileRef struct {
	AbsPath  string `mapstructure:"abs_path,omitempty"`
	RelPath  string `mapstructure:"rel_path,omitempty"`
	FileType string `mapstructure:"file_type,omitempty"`
}

Jump to

Keyboard shortcuts

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