annotation

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// GIF is icon content type image/gif
	GIF = "image/gif"
	// PNG is icon content type image/png
	PNG = "image/png"
	// JPEG is icon content type image/jpeg
	JPEG = "image/jpeg"

	// AnnotationPrefix is the prefix of annotation
	AnnotationPrefix = "io.goharbor.artifact"

	// SkipList is the key word of skip-list annotation
	SkipList = "skip-list"
	// Icon is the key word of icon annotation
	Icon = "icon"
)
View Source
const (
	// V1alpha1 is the version of annotation parser
	V1alpha1 = "v1alpha1"
)

Variables

This section is empty.

Functions

func RegisterAnnotationParser

func RegisterAnnotationParser(parser Parser, version string)

RegisterAnnotationParser register annotation parser

Types

type Parser

type Parser interface {
	// Parse parses annotations in artifact manifest, abstracts data from artifact config layer into the artifact model
	Parse(ctx context.Context, artifact *artifact.Artifact, manifest []byte) (err error)
}

Parser parses annotations in artifact manifest

func GetAnnotationParser

func GetAnnotationParser(version string) Parser

GetAnnotationParser register annotation parser

func NewParser

func NewParser() Parser

NewParser creates a new annotation parser

Jump to

Keyboard shortcuts

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