defaults

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseDir                   = "/etc/edgemesh/"
	ConfigDir                 = BaseDir + "config/"
	EdgeMeshAgentConfigName   = "edgemesh-agent.yaml"
	EdgeMeshGatewayConfigName = "edgemesh-gateway.yaml"

	EdgeDNSModuleName     = "EdgeDNS"
	EdgeProxyModuleName   = "EdgeProxy"
	EdgeGatewayModuleName = "EdgeGateway"
	EdgeTunnelModuleName  = "EdgeTunnel"

	BridgeDeviceName = "edgemesh0"
	BridgeDeviceIP   = "169.254.96.16"

	TempKubeConfigPath = "/kubeconfig"
	MetaServerAddress  = "http://127.0.0.1:10550"
	MetaServerCertDir  = BaseDir + "metaserver/"
	MetaServerCaFile   = MetaServerCertDir + "rootCA.crt"
	MetaServerCertFile = MetaServerCertDir + "server.crt"
	MetaServerKeyFile  = MetaServerCertDir + "server.key"

	EdgeMode   RunningMode = "EdgeMode"   // detected running on the edge
	CloudMode  RunningMode = "CloudMode"  // detected running on the cloud
	ManualMode RunningMode = "ManualMode" // detected that user manually configured kubeAPIConfig

	EmptyNodeName = "EMPTY_NODE_NAME"
	EmptyPodName  = "EMPTY_POD_NAME"

	// LabelEdgeMeshServiceProxyName indicates that an alternative service proxy will implement this Service.
	LabelEdgeMeshServiceProxyName = "service.edgemesh.kubeedge.io/service-proxy-name"

	ProxyCaller   LoadBalancerCaller = "ProxyCaller"
	GatewayCaller LoadBalancerCaller = "GatewayCaller"

	ClientMode       TunnelMode = "ClientOnly"
	ServerClientMode TunnelMode = "ServerAndClient"

	Rendezvous = "EDGEMESH_PLAYGOUND"
	PSKPath    = BaseDir + "psk"

	// DiscoveryProtocol and ProxyProtocol maintained by EdgeMesh Author
	DiscoveryProtocol protocol.ID = "/libp2p/tunnel-discovery/1.0.0"
	ProxyProtocol     protocol.ID = "/libp2p/tunnel-proxy/1.0.0"

	MdnsDiscovery DiscoveryType = "MDNS"
	DhtDiscovery  DiscoveryType = "DHT"

	FilterIfLabelExistsMode        ServiceFilterMode = "FilterIfLabelExists"
	FilterIfLabelDoesNotExistsMode ServiceFilterMode = "FilterIfLabelDoesNotExists"

	TunnelBaseStreamIn      int = 10240
	TunnelBaseStreamOut     int = 10240
	TunnelPeerBaseStreamIn  int = 1024
	TunnelPeerBaseStreamOut int = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryType

type DiscoveryType string

type LoadBalancerCaller

type LoadBalancerCaller string

type RunningMode

type RunningMode string

type ServiceFilterMode added in v1.13.0

type ServiceFilterMode string

type TunnelMode

type TunnelMode string

Jump to

Keyboard shortcuts

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