Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ResourceAPIVersionLabel defines what API version a resource belongs to // for filtering purposes. ResourceAPIVersionLabel = "resource.unikorn-cloud.org/api-version" ServerDeletionHintAnnotation = "cluster.compute.unikorn-cloud.org/deletion-hint" InstanceLabel = "compute.unikorn-cloud.org/instance-id" ClusterLabel = "compute.unikorn-cloud.org/cluster-id" )
View Source
const ( SystemTagPrefix = "compute.unikorn-cloud.org:" InstanceIDTag = SystemTagPrefix + "instance-id" )
Variables ¶
View Source
var ( // Application is the application name. //nolint:gochecknoglobals Application = path.Base(os.Args[0]) // Version is the application version set via the Makefile. //nolint:gochecknoglobals Version string // Revision is the git revision set via the Makefile. //nolint:gochecknoglobals Revision string )
Functions ¶
func MarshalAPIVersion ¶ added in v1.12.0
func ServiceDescriptor ¶ added in v1.9.0
func ServiceDescriptor() util.ServiceDescriptor
func UnmarshalAPIVersion ¶ added in v1.12.0
func VersionString ¶
func VersionString() string
VersionString returns a canonical version string. It's based on HTTP's User-Agent so can be used to set that too, if this ever has to call out ot other micro services.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.