Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ConfigMapEventBuffer int
ConfigMapEventBuffer is the size of channel which save configmap event from k8s
var Context *context.Context
Context ...
var ContextReceiveModule string
ContextReceiveModule is the name receive message from
var ContextResponseModule string
ContextResponseModule is the name response message from
var ContextSendModule string
ContextSendModule is the name send message to
var EdgeSiteEnabled bool
EdgeSiteEnabled is used to enable or disable EdgeSite feature. Default is disabled
var EndpointsEventBuffer int
EndpointsEventBuffer is the size of channel which save endpoints event from k8s
var KubeNodeID string
KubeNodeID for the current node
var KubeNodeName string
KubeNodeName for the current node
var KubeUpdateNodeFrequency time.Duration
KubeUpdateNodeFrequency is the time duration for update node status(default is 20s)
var MessageLayer string
MessageLayer used, context or ssmq, default is context
var PodEventBuffer int
PodEventBuffer is the size of channel which save pod event from k8s
var QueryConfigMapBuffer int
QueryConfigMapBuffer is the size of channel which save query configmap message from edge
var QueryConfigMapWorkers int
QueryConfigMapWorkers is the count of goroutines of query configmap
var QueryEndpointsBuffer int
QueryEndpointsBuffer is the size of channel which save query endpoints message from edge
var QueryEndpointsWorkers int
QueryEndpointsWorkers is the count of goroutines of query endpoints
var QuerySecretBuffer int
QuerySecretBuffer is the size of channel which save query secret message from edge
var QuerySecretWorkers int
QuerySecretWorkers is the count of goroutines of query secret
var QueryServiceBuffer int
QueryServiceBuffer is the size of channel which save query service message from edge
var QueryServiceWorkers int
QueryServiceWorkers is the count of goroutines of query service
var SecretEventBuffer int
SecretEventBuffer is the size of channel which save secret event from k8s
var ServiceEventBuffer int
ServiceEventBuffer is the size of channel which save service event from k8s
var UpdateNodeStatusBuffer int
UpdateNodeStatusBuffer is the size of channel which save update node status message from edge
var UpdateNodeStatusWorkers int
UpdateNodeStatusWorkers is the count of goroutines of update node status
var UpdatePodStatusBuffer int
UpdatePodStatusBuffer is the size of channel which save update pod status message from edge
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