registrydelegate

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaManifestOptions

type DeltaManifestOptions struct {
	From string
	To   string
	algorithmchoice.DifferChoice
}

type RegistryDelegate

type RegistryDelegate interface {
	// Resolve the provided image.
	// Enforces whether the image is tagged or uses a digest.
	// If an authToken is provided it, and ONLY it has to be used to authenticate to the registry.
	Resolve(image string, expectDigest bool, creds auth.CredentialFunc) (oras.ReadOnlyTarget, string, v1.Descriptor, error)
	LoadManifest(target v1.Descriptor, source oras.ReadOnlyTarget) (ociutils.Manifest, error)
	LoadArtifact(mf ociutils.Manifest, source oras.ReadOnlyTarget) (io.ReadCloser, error)
	PushDelta(ctx context.Context, image string, manifOpts DeltaManifestOptions, content io.ReadCloser) error
	PushDummy(image string, manifOpts DeltaManifestOptions) error
}

func NewRegistryDelegate

func NewRegistryDelegate(creds auth.CredentialFunc, allowHttp bool) RegistryDelegate

NewRegistryDelegate constructs a RegistryDelegate for a given registry that is located at the provided registryUrl.

Jump to

Keyboard shortcuts

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