registry

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckImageRef

func CheckImageRef(ctx context.Context, ref Reference, authConfig RegistriesConfig) (string, error)

func NewKeychain

func NewKeychain(registries RegistriesConfig) authn.Keychain

Types

type Reference

type Reference struct {
	Domain     string
	Repository string
	Tag        string
	Digest     string
}

func Parse

func Parse(ref string) (Reference, error)

func (*Reference) HasDigest

func (r *Reference) HasDigest() bool

func (*Reference) String

func (r *Reference) String() string

type RegistriesConfig

type RegistriesConfig map[string]RegistryAuthConfig

func (RegistriesConfig) Get

func (a RegistriesConfig) Get(host string) (string, string, error)

Get implements authn.Helper.

func (RegistriesConfig) GetAuthConfig

func (a RegistriesConfig) GetAuthConfig(registry string) *RegistryAuthConfig

type RegistryAuthConfig

type RegistryAuthConfig struct {
	Username      string `json:"username" toml:"username"`
	Password      string `json:"password" toml:"password"`
	Auth          string `json:"auth" toml:"auth"`
	IdentityToken string `json:"identitytoken" toml:"identitytoken"`
}

Jump to

Keyboard shortcuts

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