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 ¶
func (h *ClusterScaleHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
type GetScheduleStatusHandler ¶
type GetScheduleStatusHandler struct {
// contains filtered or unexported fields
}
func (*GetScheduleStatusHandler) Handle ¶
func (h *GetScheduleStatusHandler) Handle(params *MultiCloudDBParams) error
func (*GetScheduleStatusHandler) SetNext ¶
func (h *GetScheduleStatusHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
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 ¶
func (h *HostConfigMapHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
type MongoDependencyHandler ¶
type MongoDependencyHandler struct {
// contains filtered or unexported fields
}
func (*MongoDependencyHandler) Handle ¶
func (h *MongoDependencyHandler) Handle(params *MultiCloudDBParams) error
func (*MongoDependencyHandler) SetNext ¶
func (h *MongoDependencyHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
type MongoHandler ¶
type MongoHandler struct {
// contains filtered or unexported fields
}
func (*MongoHandler) Handle ¶
func (h *MongoHandler) Handle(params *MultiCloudDBParams) error
func (*MongoHandler) SetNext ¶
func (h *MongoHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
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 ¶
func (h *StatusHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
type UpsertArbiterHandler ¶
type UpsertArbiterHandler struct {
// contains filtered or unexported fields
}
func (*UpsertArbiterHandler) Handle ¶
func (h *UpsertArbiterHandler) Handle(params *MultiCloudDBParams) error
func (*UpsertArbiterHandler) SetNext ¶
func (h *UpsertArbiterHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
type VIPAllocatorHandler ¶
type VIPAllocatorHandler struct {
// contains filtered or unexported fields
}
func (*VIPAllocatorHandler) Handle ¶
func (h *VIPAllocatorHandler) Handle(params *MultiCloudDBParams) error
func (*VIPAllocatorHandler) SetNext ¶
func (h *VIPAllocatorHandler) SetNext(handler MultiCloudDBHandler) MultiCloudDBHandler
Click to show internal directories.
Click to hide internal directories.