Documentation ¶
Index ¶
Constants ¶
View Source
const ( //syncStorageErr = "ZOOKEEPERErr" SyncSuccess = "success" SyncFailure = "failure" DataTypeApp = "Application" DataTypeTaskGroup = "TaskGroup" DataTypeCfg = "Configmap" //DataTypeSecret = "Secret" DataTypeDeploy = "Deployment" DataTypeSvr = "Service" DataTypeExpSVR = "ExportService" DataTypeIPPoolStatic = "IPPoolStatic" 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.