Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractUpstreamVersion ¶
ExtractUpstreamVersion extracts the upstream version from a Debian version For example: "1.2.3-4ubuntu1" -> "1.2.3", "2:1.5.0-1" -> "1.5.0"
Types ¶
type ArtifactKey ¶
ArtifactKey represents a generic set of key-value pairs that uniquely identify an artifact This is package-type agnostic and can be used for any artifact registry type
func ParseArtifactKeyString ¶
func ParseArtifactKeyString(keyStr string) (ArtifactKey, error)
ParseArtifactKeyString parses a comma-separated key=value string into an ArtifactKey Example: "architecture=amd64,distribution=focal,component=main" Any key names are accepted - no validation is performed on key names
func (ArtifactKey) IsEmpty ¶
func (ak ArtifactKey) IsEmpty() bool
IsEmpty returns true if the artifact key has no entries
func (ArtifactKey) String ¶
func (ak ArtifactKey) String() string
String returns a formatted string representation
Click to show internal directories.
Click to hide internal directories.