config

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName  = "agent.edgemesh.config.kubeedge.io"
	APIVersion = "v1alpha1"
	Kind       = "EdgeMeshAgent"

	DefaultDummyDeviceName = "edgemesh0"
	DefaultDummyDeviceIP   = "169.254.96.16"
	DefaultEdgeApiServer   = "http://127.0.0.1:10550"

	// EdgeMode means that edgemesh-agent detects that it is currently running on the edge
	EdgeMode = "EdgeMode"
	// CloudMode means that edgemesh-agent detects that it is currently running on the cloud
	CloudMode = "CloudMode"
	// DebugMode indicates that the user manually configured kubeAPIConfig
	DebugMode = "DebugMode"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonConfig added in v1.9.0

type CommonConfig struct {
	// Mode indicates the current running mode of edgemesh-agent
	// do not allow users to configure manually
	// default "CloudMode"
	Mode string `json:"mode,omitempty"`
	// DummyDeviceName indicates the name of the dummy device will be created
	// default edgemesh0
	DummyDeviceName string `json:"dummyDeviceName,omitempty"`
	// DummyDeviceIP indicates the IP bound to the dummy device
	// default "169.254.96.16"
	DummyDeviceIP string `json:"dummyDeviceIP,omitempty"`
}

CommonConfig defines some common configuration items

type EdgeMeshAgentConfig

type EdgeMeshAgentConfig struct {
	metav1.TypeMeta
	// CommonConfig indicates common config for all modules
	// +Required
	CommonConfig *CommonConfig `json:"commonConfig,omitempty"`
	// KubeAPIConfig indicates the kubernetes cluster info which edgeMeshAgent will connected
	// +Required
	KubeAPIConfig *v1alpha1.KubeAPIConfig `json:"kubeAPIConfig,omitempty"`
	// GoChassisConfig defines some configurations related to go-chassis
	// +Required
	GoChassisConfig *chassisconfig.GoChassisConfig `json:"goChassisConfig,omitempty"`
	// Modules indicates edgeMeshAgent modules config
	// +Required
	Modules *Modules `json:"modules,omitempty"`
}

EdgeMeshAgentConfig indicates the config of edgeMeshAgent which get from edgeMeshAgent config file

func NewEdgeMeshAgentConfig

func NewEdgeMeshAgentConfig() *EdgeMeshAgentConfig

NewEdgeMeshAgentConfig returns a full EdgeMeshAgentConfig object

func (*EdgeMeshAgentConfig) Parse

func (c *EdgeMeshAgentConfig) Parse(filename string) error

Parse unmarshal config file into *EdgeMeshAgentConfig

type Modules

type Modules struct {
	// EdgeDNSConfig indicates edgedns module config
	EdgeDNSConfig *dnsconfig.EdgeDNSConfig `json:"edgeDNS,omitempty"`
	// EdgeProxyConfig indicates edgeproxy module config
	EdgeProxyConfig *proxyconfig.EdgeProxyConfig `json:"edgeProxy,omitempty"`
	// EdgeGatewayConfig indicates edgegateway module config
	EdgeGatewayConfig *gwconfig.EdgeGatewayConfig `json:"edgeGateway,omitempty"`
	// TunnelAgentConfig indicates tunnelagent module config
	TunnelAgentConfig *tunnelconfig.TunnelAgentConfig `json:"tunnel,omitempty"`
}

Modules indicates the modules of edgeMeshAgent will be use

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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