projectinfo

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAgentName

func GetAgentName() string

func GetEdgeEnableTunnelLabelKey

func GetEdgeEnableTunnelLabelKey() string

GetEdgeEnableTunnelLabelKey returns the tunnel agent label, 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, 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

func GetProjectPrefix

func GetProjectPrefix() string

func GetServerName

func GetServerName() string

func GetTunnelName

func GetTunnelName() string

GetTunnelName returns name of tunnel

func GetYurtAppManagerName

func GetYurtAppManagerName() string

GetYurtAppManagerName returns name of tunnel

func GetYurtControllerManagerName

func GetYurtControllerManagerName() string

GetYurtControllerManagerName returns name of openyurt controller-manager

func ShortAgentVersion

func ShortAgentVersion() string

func ShortServerVersion

func ShortServerVersion() string

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

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