deltadelegate

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaDelegate

type DeltaDelegate interface {
	// IsDummy checks if the provided ociutils.Manifest refers to a dummy image that has not expired.
	// Dummy images are used to communicate to other Doras instances that a server is working on creating this delta.
	// This method should handle synchronization at the instance level.
	IsDummy(mf ociutils.Manifest) (isDummy bool, expired bool)
	// GetDeltaLocation returns the image at which the delta with the given options is/should be stored.
	GetDeltaLocation(deltaMf registrydelegate.DeltaManifestOptions) (string, error)
	// CreateDelta constructs the delta and pushes it to the registry.
	// This method should handle synchronization at the instance level.
	CreateDelta(ctx context.Context, from, to io.ReadCloser, manifOpts registrydelegate.DeltaManifestOptions, dst registrydelegate.RegistryDelegate) error
}

DeltaDelegate abstracts over operations that are required to create deltas.

func NewDeltaDelegate

func NewDeltaDelegate() DeltaDelegate

NewDeltaDelegate construct a DeltaDelegate that is used to handle delta creation operations.

Jump to

Keyboard shortcuts

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