registry

package
v0.0.365 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDockerKeychain oci.Keychain = defaultDockerKeychain{}
View Source
var (
	ErrNoRegistry = errors.New("no registry configured")
)

Functions

func AllocateStaticName

func AllocateStaticName(r Manager, url, repository, tag string, access oci.RegistryAccess) compute.Computable[oci.RepositoryWithParent]

func AttachStaticKeychain

func AttachStaticKeychain(r Manager, repository string, access oci.RegistryAccess) oci.RepositoryWithParent

func Register

func Register(name string, make func(context.Context, cfg.Configuration) (Manager, error))

XXX use external plugin system.

func StaticRepository added in v0.0.124

func StaticRepository(parent Manager, repository string, access oci.RegistryAccess) compute.Computable[oci.RepositoryWithParent]

Types

type Manager

type Manager interface {
	Access() oci.RegistryAccess

	AllocateName(repository, tag string) compute.Computable[oci.RepositoryWithParent]
}

func GetRegistry

func GetRegistry(ctx context.Context, env cfg.Context) (Manager, error)

func GetRegistryFromConfig

func GetRegistryFromConfig(ctx context.Context, env string, cfg cfg.Configuration) (Manager, error)

func MakeStaticRegistry

func MakeStaticRegistry(r *registry.Registry) Manager

Jump to

Keyboard shortcuts

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