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(dummyExpirationDuration time.Duration) DeltaDelegate
NewDeltaDelegate construct a DeltaDelegate that is used to handle delta creation operations.
Click to show internal directories.
Click to hide internal directories.