Documentation ¶
Index ¶
- func GetAllInstanceUUIDsComp(ctx *context.Ctx) ([]string, error)
- func GetAllReplicasetUUIDsComp(ctx *context.Ctx) ([]string, error)
- func GetInstanceHostsComp(instanceUUID string, ctx *context.Ctx) ([]string, error)
- func GetReplicasetInstancesComp(replicasetUUID string, ctx *context.Ctx) ([]string, error)
- func List(ctx *context.Ctx) error
- func PatchURI(ctx *context.Ctx) error
- func RemoveInstance(ctx *context.Ctx) error
- func Run(processConfFunc ProcessConfFuncType, ctx *context.Ctx, patchConf bool) error
- func SetLeader(ctx *context.Ctx) error
- type AppConfigs
- type InstanceConfType
- type PatchConfFuncType
- type ProcessConfFuncType
- type RawConfType
- type ReplicasetConfType
- type TopologyConfFileInfo
- type TopologyConfType
- func (topologyConf *TopologyConfType) GetOrderedInstaceUUIDs() []string
- func (topologyConf *TopologyConfType) GetOrderedReplicasetUUIDs() []string
- func (topologyConf *TopologyConfType) MarshalContent() ([]byte, error)
- func (topologyConf *TopologyConfType) RemoveInstance(instanceUUID string) error
- func (topologyConf *TopologyConfType) RemoveReplicaset(replicasetUUID string) error
- func (topologyConf *TopologyConfType) SetInstanceURI(instanceUUID, newURI string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstanceHostsComp ¶
func RemoveInstance ¶
Types ¶
type AppConfigs ¶
type AppConfigs struct {
// contains filtered or unexported fields
}
func (*AppConfigs) AreDifferent ¶
func (d *AppConfigs) AreDifferent() bool
func (*AppConfigs) GetDiffs ¶
func (d *AppConfigs) GetDiffs() (string, error)
type InstanceConfType ¶
type InstanceConfType struct { AdvertiseURI string `mapstructure:"uri"` ReplicasetUUID string `mapstructure:"replicaset_uuid"` IsExpelled bool IsDisabled bool `mapstructure:"disabled"` Raw RawConfType }
type PatchConfFuncType ¶
type PatchConfFuncType func(topologyConf *TopologyConfType, ctx *context.Ctx) error
type ProcessConfFuncType ¶
type ProcessConfFuncType func(topologyConf *TopologyConfType, ctx *context.Ctx) ([]common.ResultMessage, error)
type RawConfType ¶
type RawConfType map[interface{}]interface{}
type ReplicasetConfType ¶
type ReplicasetConfType struct { Alias string `mapstructure:"alias"` Leaders []string `mapstructure:"master"` RolesMap map[string]bool `mapstructure:"roles"` Instances []string Raw RawConfType LeadersIsString bool }
func (*ReplicasetConfType) SetInstances ¶
func (replicasetConf *ReplicasetConfType) SetInstances(newInstances []string)
func (*ReplicasetConfType) SetLeaders ¶
func (replicasetConf *ReplicasetConfType) SetLeaders(newLeaders []string)
type TopologyConfFileInfo ¶
type TopologyConfType ¶
type TopologyConfType struct { Instances map[string]*InstanceConfType Replicasets map[string]*ReplicasetConfType // contains filtered or unexported fields }
func (*TopologyConfType) GetOrderedInstaceUUIDs ¶
func (topologyConf *TopologyConfType) GetOrderedInstaceUUIDs() []string
func (*TopologyConfType) GetOrderedReplicasetUUIDs ¶
func (topologyConf *TopologyConfType) GetOrderedReplicasetUUIDs() []string
func (*TopologyConfType) MarshalContent ¶
func (topologyConf *TopologyConfType) MarshalContent() ([]byte, error)
func (*TopologyConfType) RemoveInstance ¶
func (topologyConf *TopologyConfType) RemoveInstance(instanceUUID string) error
func (*TopologyConfType) RemoveReplicaset ¶
func (topologyConf *TopologyConfType) RemoveReplicaset(replicasetUUID string) error
func (*TopologyConfType) SetInstanceURI ¶
func (topologyConf *TopologyConfType) SetInstanceURI(instanceUUID, newURI string) error
Click to show internal directories.
Click to hide internal directories.