multicloudmongodb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterScaleHandler

type ClusterScaleHandler struct {
	// contains filtered or unexported fields
}

func (*ClusterScaleHandler) Handle

func (h *ClusterScaleHandler) Handle(params *MultiCloudDBParams) error

func (*ClusterScaleHandler) SetNext

type GetScheduleStatusHandler

type GetScheduleStatusHandler struct {
	// contains filtered or unexported fields
}

func (*GetScheduleStatusHandler) Handle

func (*GetScheduleStatusHandler) SetNext

type HostConfigMapHandler

type HostConfigMapHandler struct {
	// contains filtered or unexported fields
}

func (*HostConfigMapHandler) Handle

func (h *HostConfigMapHandler) Handle(params *MultiCloudDBParams) error

具有优化空间,hostConf的处理不应该关心cr.spec的逻辑,思路应该是只关注于从pp下发的svc的vip以及nodeport的构建conf

func (*HostConfigMapHandler) SetNext

type MongoDependencyHandler

type MongoDependencyHandler struct {
	// contains filtered or unexported fields
}

func (*MongoDependencyHandler) Handle

func (h *MongoDependencyHandler) Handle(params *MultiCloudDBParams) error

func (*MongoDependencyHandler) SetNext

type MongoHandler

type MongoHandler struct {
	// contains filtered or unexported fields
}

func (*MongoHandler) Handle

func (h *MongoHandler) Handle(params *MultiCloudDBParams) error

func (*MongoHandler) SetNext

type MultiCloudDBHandler

type MultiCloudDBHandler interface {
	SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
	Handle(params *MultiCloudDBParams) error
}

func BuildMultiCloudDBHandlerChain

func BuildMultiCloudDBHandlerChain() MultiCloudDBHandler

type MultiCloudDBParams

type MultiCloudDBParams struct {
	Cli                    client.Client
	MultiCloudMongoDB      *middlewarev1alpha1.MultiCloudMongoDB
	ClusterToVIPMap        map[string]string
	SchedulerResult        *model.SchedulerResult
	Schema                 *runtime.Scheme
	ArbiterMap             map[string]*corev1.Service
	Log                    *zap.SugaredLogger
	ServiceNameWithCluster map[string][]string
	ActiveCluster          []string
}

type NextOption

type NextOption string

type StatusHandler

type StatusHandler struct {
	// contains filtered or unexported fields
}

func (*StatusHandler) Handle

func (h *StatusHandler) Handle(params *MultiCloudDBParams) error

func (*StatusHandler) SetNext

type UpsertArbiterHandler

type UpsertArbiterHandler struct {
	// contains filtered or unexported fields
}

func (*UpsertArbiterHandler) Handle

func (h *UpsertArbiterHandler) Handle(params *MultiCloudDBParams) error

func (*UpsertArbiterHandler) SetNext

type VIPAllocatorHandler

type VIPAllocatorHandler struct {
	// contains filtered or unexported fields
}

func (*VIPAllocatorHandler) Handle

func (h *VIPAllocatorHandler) Handle(params *MultiCloudDBParams) error

func (*VIPAllocatorHandler) SetNext

Jump to

Keyboard shortcuts

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