oci

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnauthorized = errors.New("unauthorized")
)

Functions

func GetCredentials

func GetCredentials(registry string, creds Credentials) (func(context.Context, string) (auth.Credential, error), error)

func NewRepository

func NewRepository(opts Repository) (*remote.Repository, error)

NewRepository assembles an ORAS remote repository.

func PullRecipe

func PullRecipe(ctx context.Context, repo Repository) (*recipe.Recipe, error)

func PushRecipe

func PushRecipe(ctx context.Context, path string, opts Repository) error

func SaveRemoteRecipe

func SaveRemoteRecipe(ctx context.Context, dest string, opts Repository) error

SaveRemoteRecipe pulls a recipe from repository and saves it to dest directory

Types

type Credentials

type Credentials struct {
	Username      string
	Password      string
	DockerConfigs []string
}

type Repository

type Repository struct {
	Reference   string
	PlainHTTP   bool
	Credentials Credentials
	TLS         TLSConfig
}

type TLSConfig

type TLSConfig struct {
	CACertFilePath string
	Insecure       bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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