Documentation ¶
Index ¶
- Variables
- func AllocateName(ctx context.Context, env cfg.Context, pkg schema.PackageName) (compute.Computable[oci.AllocatedRepository], error)
- func AllocateStaticName(r Manager, url, repository string, keychain oci.Keychain) compute.Computable[oci.AllocatedRepository]
- func AttachStaticKeychain(r Manager, img oci.ImageID, keychain oci.Keychain) oci.AllocatedRepository
- func Precomputed(tag oci.AllocatedRepository) compute.Computable[oci.AllocatedRepository]
- func RawAllocateName(ctx context.Context, ck cfg.Configuration, repo string) (compute.Computable[oci.AllocatedRepository], error)
- func Register(name string, make func(context.Context, cfg.Configuration) (Manager, error))
- func StaticName(parent Manager, imageID oci.ImageID, insecure bool, keychain oci.Keychain) compute.Computable[oci.AllocatedRepository]
- type Manager
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoRegistry = errors.New("no registry configured")
)
Functions ¶
func AllocateName ¶
func AllocateName(ctx context.Context, env cfg.Context, pkg schema.PackageName) (compute.Computable[oci.AllocatedRepository], error)
func AllocateStaticName ¶
func AllocateStaticName(r Manager, url, repository string, keychain oci.Keychain) compute.Computable[oci.AllocatedRepository]
func AttachStaticKeychain ¶
func Precomputed ¶
func Precomputed(tag oci.AllocatedRepository) compute.Computable[oci.AllocatedRepository]
func RawAllocateName ¶
func RawAllocateName(ctx context.Context, ck cfg.Configuration, repo string) (compute.Computable[oci.AllocatedRepository], error)
func StaticName ¶
func StaticName(parent Manager, imageID oci.ImageID, insecure bool, keychain oci.Keychain) compute.Computable[oci.AllocatedRepository]
Types ¶
type Manager ¶
type Manager interface { // Returns true if calls to the registry should be made over HTTP (instead of HTTPS). IsInsecure() bool AllocateName(repository string) compute.Computable[oci.AllocatedRepository] AttachKeychain(oci.ImageID) (oci.AllocatedRepository, error) }
func GetRegistryFromConfig ¶
func MakeStaticRegistry ¶
Click to show internal directories.
Click to hide internal directories.