fake

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fake implements testing fakes.

Index

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 (*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 (*FakeEtcdClient) MemberRemove added in v0.3.2

func (*FakeEtcdClient) MemberUpdate added in v0.3.2

func (*FakeEtcdClient) MoveLeader

func (*FakeEtcdClient) Status added in v0.3.2

Jump to

Keyboard shortcuts

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