fake

package
v0.3.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEtcdClient

type FakeEtcdClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *FakeEtcdClient

func (*FakeEtcdClient) AddMember

func (c *FakeEtcdClient) AddMember(memberID uint64, peerURLs []string) error

func (*FakeEtcdClient) Alarms

func (c *FakeEtcdClient) Alarms(ctx context.Context) ([]etcd.MemberAlarm, error)

func (*FakeEtcdClient) ClearAlarm

func (c *FakeEtcdClient) ClearAlarm(alarmType etcd.AlarmType, memberID uint64) error

func (*FakeEtcdClient) Close

func (c *FakeEtcdClient) Close() error

func (*FakeEtcdClient) Leader

func (c *FakeEtcdClient) Leader() (*etcd.Member, error)

func (*FakeEtcdClient) Members

func (c *FakeEtcdClient) Members(ctx context.Context) ([]*etcd.Member, error)

func (*FakeEtcdClient) MoveLeader

func (c *FakeEtcdClient) MoveLeader(ctx context.Context, memberID uint64) error

func (*FakeEtcdClient) RemoveMember

func (c *FakeEtcdClient) RemoveMember(ctx context.Context, memberID uint64) error

func (*FakeEtcdClient) SetAlarm

func (c *FakeEtcdClient) SetAlarm(alarmType etcd.AlarmType, memberID uint64) error

func (*FakeEtcdClient) SetHealthy

func (c *FakeEtcdClient) SetHealthy(memberID uint64) error

func (*FakeEtcdClient) SetLeader

func (c *FakeEtcdClient) SetLeader(memberID uint64) error

func (*FakeEtcdClient) SetUnhealthy

func (c *FakeEtcdClient) SetUnhealthy(memberID uint64) error

func (*FakeEtcdClient) StartMember

func (c *FakeEtcdClient) StartMember(memberID uint64, name string, clientURLs []string) error

func (*FakeEtcdClient) UpdateMemberPeerURLs

func (c *FakeEtcdClient) UpdateMemberPeerURLs(ctx context.Context, memberID uint64, peerURLs []string) ([]*etcd.Member, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL