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) (v1.Manifest, error)
LoadArtifact(mf v1.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.
Click to show internal directories.
Click to hide internal directories.