Documentation ¶
Overview ¶
Package fake implements testing fakes.
Index ¶
- type FakeEtcdClient
- func (c *FakeEtcdClient) AlarmList(_ context.Context) (*clientv3.AlarmResponse, error)
- func (c *FakeEtcdClient) Close() error
- func (c *FakeEtcdClient) Endpoints() []string
- func (c *FakeEtcdClient) MemberList(_ context.Context) (*clientv3.MemberListResponse, error)
- func (c *FakeEtcdClient) MemberRemove(_ context.Context, i uint64) (*clientv3.MemberRemoveResponse, error)
- func (c *FakeEtcdClient) MemberUpdate(_ context.Context, _ uint64, _ []string) (*clientv3.MemberUpdateResponse, error)
- func (c *FakeEtcdClient) MoveLeader(_ context.Context, i uint64) (*clientv3.MoveLeaderResponse, error)
- func (c *FakeEtcdClient) Status(_ context.Context, _ string) (*clientv3.StatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEtcdClient ¶
type FakeEtcdClient struct { AlarmResponse *clientv3.AlarmResponse EtcdEndpoints []string MemberListResponse *clientv3.MemberListResponse MemberRemoveResponse *clientv3.MemberRemoveResponse MemberUpdateResponse *clientv3.MemberUpdateResponse MoveLeaderResponse *clientv3.MoveLeaderResponse StatusResponse *clientv3.StatusResponse ErrorResponse error MovedLeader uint64 RemovedMember uint64 }
func (*FakeEtcdClient) AlarmList ¶ added in v0.3.2
func (c *FakeEtcdClient) AlarmList(_ context.Context) (*clientv3.AlarmResponse, error)
func (*FakeEtcdClient) Close ¶
func (c *FakeEtcdClient) Close() error
func (*FakeEtcdClient) Endpoints ¶ added in v0.3.2
func (c *FakeEtcdClient) Endpoints() []string
func (*FakeEtcdClient) MemberList ¶ added in v0.3.2
func (c *FakeEtcdClient) MemberList(_ context.Context) (*clientv3.MemberListResponse, error)
func (*FakeEtcdClient) MemberRemove ¶ added in v0.3.2
func (c *FakeEtcdClient) MemberRemove(_ context.Context, i uint64) (*clientv3.MemberRemoveResponse, error)
func (*FakeEtcdClient) MemberUpdate ¶ added in v0.3.2
func (c *FakeEtcdClient) MemberUpdate(_ context.Context, _ uint64, _ []string) (*clientv3.MemberUpdateResponse, error)
func (*FakeEtcdClient) MoveLeader ¶
func (c *FakeEtcdClient) MoveLeader(_ context.Context, i uint64) (*clientv3.MoveLeaderResponse, error)
func (*FakeEtcdClient) Status ¶ added in v0.3.2
func (c *FakeEtcdClient) Status(_ context.Context, _ string) (*clientv3.StatusResponse, error)
Click to show internal directories.
Click to hide internal directories.