Versions in this module Expand all Collapse all v0 v0.4.0 Jun 17, 2020 Changes in this version + const NoLag + type OrcFakeClient struct + AckRec []int64 + Clusters map[string][]*Instance + Discovered []InstanceKey + Recoveries map[string][]TopologyRecovery + func New() *OrcFakeClient + func (o *OrcFakeClient) AckRecovery(id int64, comment string) error + func (o *OrcFakeClient) AddInstance(instance Instance) *Instance + func (o *OrcFakeClient) AddRecoveries(cluster string, ack bool) int64 + func (o *OrcFakeClient) AuditRecovery(cluster string) ([]TopologyRecovery, error) + func (o *OrcFakeClient) BeginMaintenance(key InstanceKey, owner, reason string) error + func (o *OrcFakeClient) CheckAck(id int64) bool + func (o *OrcFakeClient) CheckDiscovered(key string) bool + func (o *OrcFakeClient) Cluster(cluster string) ([]Instance, error) + func (o *OrcFakeClient) Discover(host string, port int) error + func (o *OrcFakeClient) EndMaintenance(key InstanceKey) error + func (o *OrcFakeClient) Forget(host string, port int) error + func (o *OrcFakeClient) Maintenance() ([]Maintenance, error) + func (o *OrcFakeClient) MakeOrcUnreachable() + func (o *OrcFakeClient) Master(clusterHint string) (*Instance, error) + func (o *OrcFakeClient) RemoveInstance(cluster, host string) + func (o *OrcFakeClient) Reset() + func (o *OrcFakeClient) SetHostReadOnly(key InstanceKey) error + func (o *OrcFakeClient) SetHostWritable(key InstanceKey) error