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 ¶
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 ¶
GetAnnotationParser register annotation parser
Click to show internal directories.
Click to hide internal directories.