Documentation ¶
Overview ¶
Package cluster xxx
Index ¶
Constants ¶
View Source
const ( // SyncSuccess TODO // syncStorageErr = "ZOOKEEPERErr" SyncSuccess = "success" // SyncFailure TODO SyncFailure = "failure" // DataTypeApp TODO DataTypeApp = "Application" // DataTypeTaskGroup TODO DataTypeTaskGroup = "TaskGroup" // DataTypeCfg TODO DataTypeCfg = "Configmap" // DataTypeDeploy = "Secret" DataTypeDeploy = "Deployment" // DataTypeSvr TODO DataTypeSvr = "Service" // DataTypeExpSVR TODO DataTypeExpSVR = "ExportService" // DataTypeIPPoolStatic TODO DataTypeIPPoolStatic = "IPPoolStatic" // DataTypeIPPoolStaticDetail TODO DataTypeIPPoolStaticDetail = "IPPoolStaticDetail" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { Run(cxt context.Context) // start cluster Sync(tp string) error // ready to sync data, type like services, pods and etc. Stop() // stop cluster GetClusterStatus() string // get curr status }
Cluster is interface for reading Cluster info
type DataExister ¶
type DataExister interface {
IsExist(data interface{}) bool
}
DataExister checker interface for data exist
type EventHandler ¶
type EventHandler interface { AddEvent(obj interface{}) DeleteEvent(obj interface{}) UpdateEvent(old, cur interface{}) }
EventHandler hold event interface for All Watch
type ReportFunc ¶
type ReportFunc func(data *types.BcsSyncData) error
ReportFunc report function for handle detail report data
Click to show internal directories.
Click to hide internal directories.