Documentation ¶
Overview ¶
Package artifact define abstract artifacts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidName = errors.New(`invalid artifact name (must match "[a-z]+[a-z0-9-_]*)"`) ErrInvalidVersion = errors.New(`invalid artifact version (must be a valid semver string)`) ErrInvalidRef = errors.New(`invalid artifact reference (must be in the format "name:version")`) )
Artifacts errors.
Functions ¶
func ValidateName ¶
ValidateName returns an error if the given name is not a valid artifact name.
func ValidateVersion ¶
ValidateVersion returns an error if the given name is not a valid artifact version.
Artifact version must be a semver string (see https://semver.org/).
Types ¶
Click to show internal directories.
Click to hide internal directories.