oci

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

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
	UserAgent   string
}

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