common

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVarLocalDomain   = "LOCAL_DOMAIN"
	ControlBy           = "control-by"
	KubernetesTool      = "kt"
	ComponentConnect    = "connect"
	ComponentExchange   = "exchange"
	ComponentMesh       = "mesh"
	ComponentProvide    = "provide"
	ConnectMethodVpn    = "vpn"
	ConnectMethodSocks  = "socks"
	ConnectMethodSocks5 = "socks5"
	KTVersion           = "kt-version"        // Label used for fetch shadow mark in UI
	KTComponent         = "kt-component"      // Label used for distinguish shadow type
	KTRemoteAddress     = "kt-remote-address" // Label used for fetch pod IP in UI
	KTName              = "kt-name"           // Label used for wait shadow pod ready
	KTConfig            = "kt-config"         // Annotation used for clean up context
	KTLastHeartBeat     = "kt-last-heart-beat"
	YyyyMmDdHhMmSs      = "2006-01-02 15:04:05"
	SshPort             = 22
	Socks4Port          = 1080
)

Variables

This section is empty.

Functions

func IsCommandExecError

func IsCommandExecError(err error) bool

IsCommandExecError check the error type

Types

type CommandExecError

type CommandExecError struct {
	Reason string
}

CommandExecError ...

func (CommandExecError) Error

func (e CommandExecError) Error() string

Jump to

Keyboard shortcuts

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