annotation

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The name annotation is used to identify different accelerated image formats in harbor.
	// Example value: `nydus`, `estargz`.
	AnnotationAccelerationDriverName = "io.goharbor.artifact.v1alpha1.acceleration.driver.name"
	// The version annotation is used to identify different accelerated image format versions
	// with same driver in harbor.
	AnnotationAccelerationDriverVersion = "io.goharbor.artifact.v1alpha1.acceleration.driver.version"
	// The digest annotation is used to reference the source (original) image, which can be
	// used to avoid duplicate conversion or track the relationship between the source image
	// and converted image in harbor.
	// Example value: `sha256:2d64e20e048640ecb619b82a26c168b7649a173d4ad6cf2af3feda9b64fe6fb8`.
	AnnotationAccelerationSourceDigest = "io.goharbor.artifact.v1alpha1.acceleration.source.digest"
)

Variables

This section is empty.

Functions

func Append

func Append(ctx context.Context, provider providerContent.Provider, desc *ocispec.Descriptor, appended Appended) (*ocispec.Descriptor, error)

Types

type Appended

type Appended struct {
	DriverName    string
	DriverVersion string
	SourceDigest  string
}

Jump to

Keyboard shortcuts

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