config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigMapEventBuffer int

ConfigMapEventBuffer is the size of channel which save configmap event from k8s

View Source
var Context *context.Context

Context ...

View Source
var ContextReceiveModule string

ContextReceiveModule is the name receive message from

View Source
var ContextResponseModule string

ContextResponseModule is the name response message from

View Source
var ContextSendModule string

ContextSendModule is the name send message to

View Source
var EdgeSiteEnabled bool

EdgeSiteEnabled is used to enable or disable EdgeSite feature. Default is disabled

View Source
var EndpointsEventBuffer int

EndpointsEventBuffer is the size of channel which save endpoints event from k8s

View Source
var KubeNodeID string

KubeNodeID for the current node

View Source
var KubeNodeName string

KubeNodeName for the current node

View Source
var KubeUpdateNodeFrequency time.Duration

KubeUpdateNodeFrequency is the time duration for update node status(default is 20s)

View Source
var MessageLayer string

MessageLayer used, context or ssmq, default is context

View Source
var PodEventBuffer int

PodEventBuffer is the size of channel which save pod event from k8s

View Source
var QueryConfigMapBuffer int

QueryConfigMapBuffer is the size of channel which save query configmap message from edge

View Source
var QueryConfigMapWorkers int

QueryConfigMapWorkers is the count of goroutines of query configmap

View Source
var QueryEndpointsBuffer int

QueryEndpointsBuffer is the size of channel which save query endpoints message from edge

View Source
var QueryEndpointsWorkers int

QueryEndpointsWorkers is the count of goroutines of query endpoints

View Source
var QuerySecretBuffer int

QuerySecretBuffer is the size of channel which save query secret message from edge

View Source
var QuerySecretWorkers int

QuerySecretWorkers is the count of goroutines of query secret

View Source
var QueryServiceBuffer int

QueryServiceBuffer is the size of channel which save query service message from edge

View Source
var QueryServiceWorkers int

QueryServiceWorkers is the count of goroutines of query service

View Source
var SecretEventBuffer int

SecretEventBuffer is the size of channel which save secret event from k8s

View Source
var ServiceEventBuffer int

ServiceEventBuffer is the size of channel which save service event from k8s

View Source
var UpdateNodeStatusBuffer int

UpdateNodeStatusBuffer is the size of channel which save update node status message from edge

View Source
var UpdateNodeStatusWorkers int

UpdateNodeStatusWorkers is the count of goroutines of update node status

View Source
var UpdatePodStatusBuffer int

UpdatePodStatusBuffer is the size of channel which save update pod status message from edge

View Source
var UpdatePodStatusWorkers int

UpdatePodStatusWorkers is the count of goroutines of update pod status

Functions

This section is empty.

Types

type KubeInfo added in v1.0.0

type KubeInfo struct {
	// KubeMaster is the url of edge master(kube api server)
	KubeMaster string

	// KubeConfig is the config used connect to edge master
	KubeConfig string

	// KubeNamespace is the namespace to watch(default is NamespaceAll)
	KubeNamespace string

	// KubeContentType is the content type communicate with edge master(default is "application/vnd.kubernetes.protobuf")
	KubeContentType string

	// KubeQPS is the QPS communicate with edge master(default is 1024)
	KubeQPS float32

	// KubeBurst default is 10
	KubeBurst int

	// NodeID for the current node
	KubeNodeID string

	// NodeName for the current node
	KubeNodeName string

	// KubeUpdateNodeFrequency is the time duration for update node status(default is 20s)
	KubeUpdateNodeFrequency time.Duration
}

KubeInfo contains Kubernetes related configuration

var Kube *KubeInfo

Kube container Kubernetes related configuration

func NewKubeInfo added in v1.0.0

func NewKubeInfo() *KubeInfo

NewKubeInfo create KubeInfo struct with default values

Jump to

Keyboard shortcuts

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