types

package
v1.29.0-alpha.38 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types xxx

Index

Constants

View Source
const (
	// ActionAdd add event
	ActionAdd = "Add"
	// ActionDelete delete event
	ActionDelete = "Delete"
	// ActionUpdate update event
	ActionUpdate = "Update"
)
View Source
const (
	// ApplicationChannelPrefix prefix for event post channel
	ApplicationChannelPrefix = "Application_"
	// TaskgroupChannelPrefix prefix for event post channel
	TaskgroupChannelPrefix = "TaskGroup_"
	// ExportserviceChannelPrefix prefix for event post channel
	ExportserviceChannelPrefix = "Exportservice_"
	// DeploymentChannelPrefix deployment prefix for post channel
	DeploymentChannelPrefix = "Deployment_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BcsSyncData

type BcsSyncData struct {
	DataType string      // data type: reflect.TypeOf(Item).Name()
	Action   string      // operation, like Add, Delete, Update
	Item     interface{} // SyncData, data is Endpoint, Service, Pod
}

BcsSyncData holder for sync data

type CmdConfig

type CmdConfig struct {
	ClusterID   string
	ClusterInfo string
	IsExternal  bool
	CAFile      string
	CertFile    string
	KeyFile     string
	PassWord    string

	RegDiscvSvr            string
	Address                string
	ApplicationThreadNum   int
	TaskgroupThreadNum     int
	ExportserviceThreadNum int
	DeploymentThreadNum    int

	MetricPort uint

	ServerCAFile   string
	ServerCertFile string
	ServerKeyFile  string
	ServerPassWord string
	ServerSchem    string

	KubeConfig  string
	StoreDriver string

	// NetServiceZK is zookeeper address config for netservice discovery,
	// reuse RegDiscvSvr by default.
	NetServiceZK string

	// Etcd etcd options for service registry and discovery
	Etcd registry.CMDOptions

	// StorageAddresses address for bcs-storage
	StorageAddresses []string
}

CmdConfig hold all command line config item

Jump to

Keyboard shortcuts

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