artifact

package
v1.3.27 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractUpstreamVersion

func ExtractUpstreamVersion(version string) string

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

type ArtifactKey map[string]string

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

Jump to

Keyboard shortcuts

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