projectinfo

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAgentName

func GetAgentName() string

Agent name: yurttunnel-agent

func GetAutonomyAnnotation added in v0.6.0

func GetAutonomyAnnotation() string

GetAutonomyAnnotation returns annotation key for node autonomy

func GetEdgeEnableTunnelLabelKey

func GetEdgeEnableTunnelLabelKey() string

GetEdgeEnableTunnelLabelKey returns the tunnel agent label ("openyurt.io/edge-enable-reverseTunnel-client"), which is used to identify if tunnel agent is running on the node or not.

func GetEdgeWorkerLabelKey

func GetEdgeWorkerLabelKey() string

GetEdgeWorkerLabelKey returns the edge-worker label ("openyurt.io/is-edge-worker"), which is used to identify if a node is a edge node ("true") or a cloud node ("false")

func GetHubLeaderConfigMapLabel added in v1.7.0

func GetHubLeaderConfigMapLabel() string

GetHubLeaderConfigMapLabel returns the label of the leader ConfigMap for the nodepool

func GetHubName

func GetHubName() string

GetHubName returns name of yurthub agent: yurthub

func GetHubleaderConfigMapName added in v1.7.0

func GetHubleaderConfigMapName(nodepoolName string) string

GetHubleaderConfigMapName returns the name of the leader ConfigMap for the nodepool

func GetNodeAutonomyDurationAnnotation added in v1.7.0

func GetNodeAutonomyDurationAnnotation() string

GetNodeAutonomyDurationAnnotation returns annotation key for node autonomy duration

func GetNodePoolLabel added in v1.5.0

func GetNodePoolLabel() string

GetNodePoolLabel returns label for specifying nodepool

func GetProjectPrefix

func GetProjectPrefix() string

The project prefix is: yurt

func GetServerName

func GetServerName() string

Server name: yurttunnel-server

func GetTunnelName

func GetTunnelName() string

GetTunnelName returns name of tunnel: yurttunnel

func GetYurtManagerName added in v1.3.0

func GetYurtManagerName() string

GetYurtManagerName returns name of openyurt-manager: yurt-manager

func RegisterVersionInfo added in v1.5.0

func RegisterVersionInfo(reg prometheus.Registerer, componentName string)

func ShortAgentVersion

func ShortAgentVersion() string

func ShortHubVersion added in v1.7.0

func ShortHubVersion() string

func ShortServerVersion

func ShortServerVersion() string

func YurtTunnelServerLabel added in v0.6.0

func YurtTunnelServerLabel() string

tunnel server label: yurt-tunnel-server

Types

type Info

type Info struct {
	GitVersion       string   `json:"gitVersion"`
	GitCommit        string   `json:"gitCommit"`
	BuildDate        string   `json:"buildDate"`
	GoVersion        string   `json:"goVersion"`
	Compiler         string   `json:"compiler"`
	Platform         string   `json:"platform"`
	AllVersions      []string `json:"allVersions"`
	NodePoolLabelKey string   `json:"nodePoolLabelKey"`
}

Info contains version information.

func Get

func Get() Info

Get returns the overall codebase version.

Jump to

Keyboard shortcuts

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