constants

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeLinux   = "linux"
	RuntimeDarwin  = "darwin"
	RuntimeWindows = "windows"
	SocatImage     = "ghcr.io/kloudlite/hub/socat:latest"

	KLDNS                       = "100.64.0.1"
	InterceptWorkspaceServiceIp = "172.18.0.3"
	K3sServerIp                 = "172.18.0.2"
)

Variables

View Source
var (
	BaseURL = func() string {
		baseUrl := flags.DefaultBaseURL

		s, err := fileclient.GetBaseURL()
		if err == nil && s != "" {
			baseUrl = s
		}

		if s := os.Getenv("KL_BASE_URL"); s != "" {
			baseUrl = s
		}

		return baseUrl
	}()

	LoginUrl = func() string {
		return fmt.Sprintf("%s/cli-login", BaseURL)
	}()
	ServerURL = func() string {
		return fmt.Sprintf("%s/api/", BaseURL)
	}()

	UpdateURL = func() string {
		return "https://kl.kloudlite.io/kloudlite/kloudlite"
	}()
)
View Source
var (
	CoreCliName = "kl"
)

Functions

func GetBoxImageName added in v1.1.0

func GetBoxImageName() string

func GetK3SImageName added in v1.1.0

func GetK3SImageName() string

func GetK3sTrackerImageName added in v1.1.0

func GetK3sTrackerImageName() string

func GetWireguardImageName added in v1.1.0

func GetWireguardImageName() string

depricated

Types

This section is empty.

Jump to

Keyboard shortcuts

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