projectinfo

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 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 GetHubName

func GetHubName() string

GetHubName returns name of yurthub agent: yurthub

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 GetYurtAppManagerName

func GetYurtAppManagerName() string

GetYurtAppManagerName returns name of tunnel: yurtapp-manager

func GetYurtControllerManagerName

func GetYurtControllerManagerName() string

GetYurtControllerManagerName returns name of openyurt controller-manager: yurtcontroller-manager

func GetYurtManagerName added in v1.3.0

func GetYurtManagerName() string

GetYurtManagerName returns name of openyurt-manager: yurt-manager

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"`
}

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