# Packages
This package provides a CLI tool to interact with the Constellation versions API.
# Functions
CanonicalizeRef returns the canonicalized ref for the given ref.
GranularityFromString returns the granularity for the given string.
MeasurementURL builds the measurement and signature URLs for the given version.
MergeImageInfos combines the image info entries from multiple sources into a single image info object.
NewClient creates a new client for the versions API.
NewFetcher returns a new Fetcher.
NewReadOnlyClient creates a new read-only client.
NewVersion creates a new Version object and validates it.
NewVersionFromShortPath creates a new Version from a version short path.
ValidateRef checks if the given ref is a valid ref.
ValidateStream checks if the given stream is a valid stream for the given ref.
VersionKindFromString returns the VersionKind for the given string.
# Constants
GranularityMajor is the granularity of a major version, e.g.
GranularityMinor is the granularity of a minor version, e.g.
GranularityPatch is the granularity of a patch version, e.g.
GranularityUnknown is the default granularity.
ReleaseRef is the ref used for release versions.
VersionKindCLI is the kind for CLI versions.
VersionKindImage is the kind for image versions.
VersionKindUnknown is the default value for VersionKind.
# Structs
Client is a client for the versions API.
CLIInfo contains information about a specific CLI version (i.e.
Fetcher fetches version API resources without authentication.
ImageInfo contains information about the OS images for a specific version.
ImageInfoEntry contains information about a single image variant.
Latest is the latest version of a kind of resource.
List represents a list of versions for a kind of resource.
Version represents a version.
# Type aliases
CloseFunc is a function that closes the client.
Granularity represents the granularity of a semantic version.
VersionKind represents the kind of resource the version versions.