artificer

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "v1"
)

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src, dst string) error

func CopyFile

func CopyFile(src, dst string) error

func UploadOCIArchive

func UploadOCIArchive(ctx context.Context, workDir, name string, version meta.Version, repo, prefix, username, password string) error

Types

type Downloader

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

func NewDownloaderWithDockerCreds

func NewDownloaderWithDockerCreds(cacheDir, repo, prefix string) (*Downloader, error)

func (*Downloader) FromORAS

func (d *Downloader) FromORAS(ctx context.Context, destPath, name string, version meta.Version, files []ORASFile) error

func (*Downloader) GetOCI

func (d *Downloader) GetOCI(ctx context.Context, name string, version meta.Version, target string) error

func (*Downloader) WithORAS

func (d *Downloader) WithORAS(ctx context.Context, name string, version meta.Version, do func(cachePath string) error) error

type ORASFile

type ORASFile struct {
	Name   string
	Target string
	Mode   os.FileMode
}

Jump to

Keyboard shortcuts

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