Documentation ¶
Index ¶
- func GetAgentName() string
- func GetAutonomyAnnotation() string
- func GetEdgeEnableTunnelLabelKey() string
- func GetEdgeWorkerLabelKey() string
- func GetHubName() string
- func GetNodePoolLabel() string
- func GetProjectPrefix() string
- func GetServerName() string
- func GetTunnelName() string
- func GetYurtManagerName() string
- func RegisterVersionInfo(reg prometheus.Registerer, componentName string)
- func ShortAgentVersion() string
- func ShortServerVersion() string
- func YurtTunnelServerLabel() string
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetNodePoolLabel ¶ added in v1.5.0
func GetNodePoolLabel() string
GetNodePoolLabel returns label for specifying nodepool
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 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.
Click to show internal directories.
Click to hide internal directories.