Help us shape the future of Go! Take the 2026 Go Developer Survey

registry

package
v1.85.5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v1.83.0

func CopyFile(fs afero.Afero, sourceFile, destinationFile string, permissions os.FileMode) error

CopyFile copies a source file to destination file and sets the given permissions.

Types

type Extractor

type Extractor interface {
	// CopyFromImage copies a file from a given image reference to the destination file.
	CopyFromImage(ctx context.Context, imageRef string, filePathInImage string, destination string, permissions os.FileMode) error
}

Extractor is an interface for extracting files from a container image.

func NewExtractor

func NewExtractor() Extractor

NewExtractor creates a new instance of containerd extractor.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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