Documentation ¶
Index ¶
- type FakeOrc
- func (o *FakeOrc) AckRecovery(id int64, comment string) error
- func (o *FakeOrc) AddInstance(cluster, host string, master bool, lag int64, slaveRunning, upToDate bool) *Instance
- func (o *FakeOrc) AddRecoveries(cluster string, id int64, ack bool)
- func (o *FakeOrc) AuditRecovery(cluster string) ([]TopologyRecovery, error)
- func (o *FakeOrc) BeginMaintenance(key InstanceKey, owner, reason string) error
- func (o *FakeOrc) CheckAck(id int64) bool
- func (o *FakeOrc) CheckDiscovered(key string) bool
- func (o *FakeOrc) Cluster(cluster string) ([]Instance, error)
- func (o *FakeOrc) Discover(host string, port int) error
- func (o *FakeOrc) EndMaintenance(key InstanceKey) error
- func (o *FakeOrc) Forget(host string, port int) error
- func (o *FakeOrc) ForgetCluster(cluster string) error
- func (o *FakeOrc) Master(clusterHint string) (*Instance, error)
- func (o *FakeOrc) RemoveInstance(cluster, host string)
- func (o *FakeOrc) SetHostReadOnly(key InstanceKey) error
- func (o *FakeOrc) SetHostWritable(key InstanceKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeOrc ¶
type FakeOrc struct { Clusters map[string][]*Instance Recoveries map[string][]TopologyRecovery AckRec []int64 Discovered []InstanceKey }
func (*FakeOrc) AddInstance ¶
func (*FakeOrc) AuditRecovery ¶
func (*FakeOrc) BeginMaintenance ¶ added in v0.1.13
func (*FakeOrc) CheckDiscovered ¶
func (*FakeOrc) EndMaintenance ¶ added in v0.1.13
func (*FakeOrc) ForgetCluster ¶ added in v0.1.13
func (*FakeOrc) RemoveInstance ¶ added in v0.1.10
func (*FakeOrc) SetHostReadOnly ¶ added in v0.1.13
func (*FakeOrc) SetHostWritable ¶ added in v0.1.13
Click to show internal directories.
Click to hide internal directories.