cluster

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 2 Imported by: 0

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

type Reporter

type Reporter interface {
	ReportData(data *types.BcsSyncData) error
	GetClusterID() string
}

Reporter for report data

Directories

Path Synopsis
Package mesos xxx
Package mesos xxx

Jump to

Keyboard shortcuts

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