constants

package
v1.1.6-nightly Latest Latest
Warning

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

Go to latest
Published: Dec 27, 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"
)
View Source
const (
	InterfaceName string = "kl"
)
View Source
const (
	KL_CONTAINER_MARK = "kl-container-mark"
)

new constants kl-v2

View Source
const (
	NetworkService = "Wi-Fi"
)

Temporary Constants

Variables

View Source
var (
	BaseURL = func() string {
		baseUrl := flags.DefaultBaseURL
		if s := os.Getenv("KL_BASE_URL"); s != "" {
			return s
		}

		fc, err := fileclient.New()
		if err != nil {
			return baseUrl
		}

		s, err := fc.GetBaseURL()
		if err != nil {
			return baseUrl
		}

		if s != "" {
			return 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"
	}()
)

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