etcd

package
v1.54.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func New

func New(endpoints []string, options ...Option) (Client, error)

type ClientMock

type ClientMock struct {
	AlarmDisarmMock mClientMockAlarmDisarm

	AlarmListMock mClientMockAlarmList

	CloseMock mClientMockClose

	CompactMock mClientMockCompact

	DefragmentMock mClientMockDefragment

	DeleteMock mClientMockDelete

	DoMock mClientMockDo

	GetMock mClientMockGet

	HashKVMock mClientMockHashKV

	MemberAddMock mClientMockMemberAdd

	MemberAddAsLearnerMock mClientMockMemberAddAsLearner

	MemberListMock mClientMockMemberList

	MemberPromoteMock mClientMockMemberPromote

	MemberRemoveMock mClientMockMemberRemove

	MemberUpdateMock mClientMockMemberUpdate

	MoveLeaderMock mClientMockMoveLeader

	PutMock mClientMockPut

	RequestProgressMock mClientMockRequestProgress

	SnapshotMock mClientMockSnapshot

	StatusMock mClientMockStatus

	TxnMock mClientMockTxn

	WatchMock mClientMockWatch
	// contains filtered or unexported fields
}

ClientMock implements Client

func NewClientMock

func NewClientMock(t minimock.Tester) *ClientMock

NewClientMock returns a mock for Client

func (*ClientMock) AlarmDisarm added in v0.0.6

func (mmAlarmDisarm *ClientMock) AlarmDisarm(ctx context.Context, m *clientv3.AlarmMember) (ap1 *clientv3.AlarmResponse, err error)

AlarmDisarm implements Client

func (*ClientMock) AlarmDisarmAfterCounter added in v0.0.6

func (mmAlarmDisarm *ClientMock) AlarmDisarmAfterCounter() uint64

AlarmDisarmAfterCounter returns a count of finished ClientMock.AlarmDisarm invocations

func (*ClientMock) AlarmDisarmBeforeCounter added in v0.0.6

func (mmAlarmDisarm *ClientMock) AlarmDisarmBeforeCounter() uint64

AlarmDisarmBeforeCounter returns a count of ClientMock.AlarmDisarm invocations

func (*ClientMock) AlarmList added in v0.0.6

func (mmAlarmList *ClientMock) AlarmList(ctx context.Context) (ap1 *clientv3.AlarmResponse, err error)

AlarmList implements Client

func (*ClientMock) AlarmListAfterCounter added in v0.0.6

func (mmAlarmList *ClientMock) AlarmListAfterCounter() uint64

AlarmListAfterCounter returns a count of finished ClientMock.AlarmList invocations

func (*ClientMock) AlarmListBeforeCounter added in v0.0.6

func (mmAlarmList *ClientMock) AlarmListBeforeCounter() uint64

AlarmListBeforeCounter returns a count of ClientMock.AlarmList invocations

func (*ClientMock) Close

func (mmClose *ClientMock) Close() (err error)

Close implements Client

func (*ClientMock) CloseAfterCounter

func (mmClose *ClientMock) CloseAfterCounter() uint64

CloseAfterCounter returns a count of finished ClientMock.Close invocations

func (*ClientMock) CloseBeforeCounter

func (mmClose *ClientMock) CloseBeforeCounter() uint64

CloseBeforeCounter returns a count of ClientMock.Close invocations

func (*ClientMock) Compact

func (mmCompact *ClientMock) Compact(ctx context.Context, rev int64, opts ...clientv3.CompactOption) (cp1 *clientv3.CompactResponse, err error)

Compact implements Client

func (*ClientMock) CompactAfterCounter

func (mmCompact *ClientMock) CompactAfterCounter() uint64

CompactAfterCounter returns a count of finished ClientMock.Compact invocations

func (*ClientMock) CompactBeforeCounter

func (mmCompact *ClientMock) CompactBeforeCounter() uint64

CompactBeforeCounter returns a count of ClientMock.Compact invocations

func (*ClientMock) Defragment added in v0.0.6

func (mmDefragment *ClientMock) Defragment(ctx context.Context, endpoint string) (dp1 *clientv3.DefragmentResponse, err error)

Defragment implements Client

func (*ClientMock) DefragmentAfterCounter added in v0.0.6

func (mmDefragment *ClientMock) DefragmentAfterCounter() uint64

DefragmentAfterCounter returns a count of finished ClientMock.Defragment invocations

func (*ClientMock) DefragmentBeforeCounter added in v0.0.6

func (mmDefragment *ClientMock) DefragmentBeforeCounter() uint64

DefragmentBeforeCounter returns a count of ClientMock.Defragment invocations

func (*ClientMock) Delete

func (mmDelete *ClientMock) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (dp1 *clientv3.DeleteResponse, err error)

Delete implements Client

func (*ClientMock) DeleteAfterCounter

func (mmDelete *ClientMock) DeleteAfterCounter() uint64

DeleteAfterCounter returns a count of finished ClientMock.Delete invocations

func (*ClientMock) DeleteBeforeCounter

func (mmDelete *ClientMock) DeleteBeforeCounter() uint64

DeleteBeforeCounter returns a count of ClientMock.Delete invocations

func (*ClientMock) Do

func (mmDo *ClientMock) Do(ctx context.Context, op clientv3.Op) (o1 clientv3.OpResponse, err error)

Do implements Client

func (*ClientMock) DoAfterCounter

func (mmDo *ClientMock) DoAfterCounter() uint64

DoAfterCounter returns a count of finished ClientMock.Do invocations

func (*ClientMock) DoBeforeCounter

func (mmDo *ClientMock) DoBeforeCounter() uint64

DoBeforeCounter returns a count of ClientMock.Do invocations

func (*ClientMock) Get

func (mmGet *ClientMock) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (gp1 *clientv3.GetResponse, err error)

Get implements Client

func (*ClientMock) GetAfterCounter

func (mmGet *ClientMock) GetAfterCounter() uint64

GetAfterCounter returns a count of finished ClientMock.Get invocations

func (*ClientMock) GetBeforeCounter

func (mmGet *ClientMock) GetBeforeCounter() uint64

GetBeforeCounter returns a count of ClientMock.Get invocations

func (*ClientMock) HashKV added in v0.0.6

func (mmHashKV *ClientMock) HashKV(ctx context.Context, endpoint string, rev int64) (hp1 *clientv3.HashKVResponse, err error)

HashKV implements Client

func (*ClientMock) HashKVAfterCounter added in v0.0.6

func (mmHashKV *ClientMock) HashKVAfterCounter() uint64

HashKVAfterCounter returns a count of finished ClientMock.HashKV invocations

func (*ClientMock) HashKVBeforeCounter added in v0.0.6

func (mmHashKV *ClientMock) HashKVBeforeCounter() uint64

HashKVBeforeCounter returns a count of ClientMock.HashKV invocations

func (*ClientMock) MemberAdd

func (mmMemberAdd *ClientMock) MemberAdd(ctx context.Context, peerAddrs []string) (mp1 *clientv3.MemberAddResponse, err error)

MemberAdd implements Client

func (*ClientMock) MemberAddAfterCounter

func (mmMemberAdd *ClientMock) MemberAddAfterCounter() uint64

MemberAddAfterCounter returns a count of finished ClientMock.MemberAdd invocations

func (*ClientMock) MemberAddAsLearner

func (mmMemberAddAsLearner *ClientMock) MemberAddAsLearner(ctx context.Context, peerAddrs []string) (mp1 *clientv3.MemberAddResponse, err error)

MemberAddAsLearner implements Client

func (*ClientMock) MemberAddAsLearnerAfterCounter

func (mmMemberAddAsLearner *ClientMock) MemberAddAsLearnerAfterCounter() uint64

MemberAddAsLearnerAfterCounter returns a count of finished ClientMock.MemberAddAsLearner invocations

func (*ClientMock) MemberAddAsLearnerBeforeCounter

func (mmMemberAddAsLearner *ClientMock) MemberAddAsLearnerBeforeCounter() uint64

MemberAddAsLearnerBeforeCounter returns a count of ClientMock.MemberAddAsLearner invocations

func (*ClientMock) MemberAddBeforeCounter

func (mmMemberAdd *ClientMock) MemberAddBeforeCounter() uint64

MemberAddBeforeCounter returns a count of ClientMock.MemberAdd invocations

func (*ClientMock) MemberList

func (mmMemberList *ClientMock) MemberList(ctx context.Context) (mp1 *clientv3.MemberListResponse, err error)

MemberList implements Client

func (*ClientMock) MemberListAfterCounter

func (mmMemberList *ClientMock) MemberListAfterCounter() uint64

MemberListAfterCounter returns a count of finished ClientMock.MemberList invocations

func (*ClientMock) MemberListBeforeCounter

func (mmMemberList *ClientMock) MemberListBeforeCounter() uint64

MemberListBeforeCounter returns a count of ClientMock.MemberList invocations

func (*ClientMock) MemberPromote

func (mmMemberPromote *ClientMock) MemberPromote(ctx context.Context, id uint64) (mp1 *clientv3.MemberPromoteResponse, err error)

MemberPromote implements Client

func (*ClientMock) MemberPromoteAfterCounter

func (mmMemberPromote *ClientMock) MemberPromoteAfterCounter() uint64

MemberPromoteAfterCounter returns a count of finished ClientMock.MemberPromote invocations

func (*ClientMock) MemberPromoteBeforeCounter

func (mmMemberPromote *ClientMock) MemberPromoteBeforeCounter() uint64

MemberPromoteBeforeCounter returns a count of ClientMock.MemberPromote invocations

func (*ClientMock) MemberRemove

func (mmMemberRemove *ClientMock) MemberRemove(ctx context.Context, id uint64) (mp1 *clientv3.MemberRemoveResponse, err error)

MemberRemove implements Client

func (*ClientMock) MemberRemoveAfterCounter

func (mmMemberRemove *ClientMock) MemberRemoveAfterCounter() uint64

MemberRemoveAfterCounter returns a count of finished ClientMock.MemberRemove invocations

func (*ClientMock) MemberRemoveBeforeCounter

func (mmMemberRemove *ClientMock) MemberRemoveBeforeCounter() uint64

MemberRemoveBeforeCounter returns a count of ClientMock.MemberRemove invocations

func (*ClientMock) MemberUpdate

func (mmMemberUpdate *ClientMock) MemberUpdate(ctx context.Context, id uint64, peerAddrs []string) (mp1 *clientv3.MemberUpdateResponse, err error)

MemberUpdate implements Client

func (*ClientMock) MemberUpdateAfterCounter

func (mmMemberUpdate *ClientMock) MemberUpdateAfterCounter() uint64

MemberUpdateAfterCounter returns a count of finished ClientMock.MemberUpdate invocations

func (*ClientMock) MemberUpdateBeforeCounter

func (mmMemberUpdate *ClientMock) MemberUpdateBeforeCounter() uint64

MemberUpdateBeforeCounter returns a count of ClientMock.MemberUpdate invocations

func (*ClientMock) MinimockAlarmDisarmDone added in v0.0.6

func (m *ClientMock) MinimockAlarmDisarmDone() bool

MinimockAlarmDisarmDone returns true if the count of the AlarmDisarm invocations corresponds the number of defined expectations

func (*ClientMock) MinimockAlarmDisarmInspect added in v0.0.6

func (m *ClientMock) MinimockAlarmDisarmInspect()

MinimockAlarmDisarmInspect logs each unmet expectation

func (*ClientMock) MinimockAlarmListDone added in v0.0.6

func (m *ClientMock) MinimockAlarmListDone() bool

MinimockAlarmListDone returns true if the count of the AlarmList invocations corresponds the number of defined expectations

func (*ClientMock) MinimockAlarmListInspect added in v0.0.6

func (m *ClientMock) MinimockAlarmListInspect()

MinimockAlarmListInspect logs each unmet expectation

func (*ClientMock) MinimockCloseDone

func (m *ClientMock) MinimockCloseDone() bool

MinimockCloseDone returns true if the count of the Close invocations corresponds the number of defined expectations

func (*ClientMock) MinimockCloseInspect

func (m *ClientMock) MinimockCloseInspect()

MinimockCloseInspect logs each unmet expectation

func (*ClientMock) MinimockCompactDone

func (m *ClientMock) MinimockCompactDone() bool

MinimockCompactDone returns true if the count of the Compact invocations corresponds the number of defined expectations

func (*ClientMock) MinimockCompactInspect

func (m *ClientMock) MinimockCompactInspect()

MinimockCompactInspect logs each unmet expectation

func (*ClientMock) MinimockDefragmentDone added in v0.0.6

func (m *ClientMock) MinimockDefragmentDone() bool

MinimockDefragmentDone returns true if the count of the Defragment invocations corresponds the number of defined expectations

func (*ClientMock) MinimockDefragmentInspect added in v0.0.6

func (m *ClientMock) MinimockDefragmentInspect()

MinimockDefragmentInspect logs each unmet expectation

func (*ClientMock) MinimockDeleteDone

func (m *ClientMock) MinimockDeleteDone() bool

MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations

func (*ClientMock) MinimockDeleteInspect

func (m *ClientMock) MinimockDeleteInspect()

MinimockDeleteInspect logs each unmet expectation

func (*ClientMock) MinimockDoDone

func (m *ClientMock) MinimockDoDone() bool

MinimockDoDone returns true if the count of the Do invocations corresponds the number of defined expectations

func (*ClientMock) MinimockDoInspect

func (m *ClientMock) MinimockDoInspect()

MinimockDoInspect logs each unmet expectation

func (*ClientMock) MinimockFinish

func (m *ClientMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*ClientMock) MinimockGetDone

func (m *ClientMock) MinimockGetDone() bool

MinimockGetDone returns true if the count of the Get invocations corresponds the number of defined expectations

func (*ClientMock) MinimockGetInspect

func (m *ClientMock) MinimockGetInspect()

MinimockGetInspect logs each unmet expectation

func (*ClientMock) MinimockHashKVDone added in v0.0.6

func (m *ClientMock) MinimockHashKVDone() bool

MinimockHashKVDone returns true if the count of the HashKV invocations corresponds the number of defined expectations

func (*ClientMock) MinimockHashKVInspect added in v0.0.6

func (m *ClientMock) MinimockHashKVInspect()

MinimockHashKVInspect logs each unmet expectation

func (*ClientMock) MinimockMemberAddAsLearnerDone

func (m *ClientMock) MinimockMemberAddAsLearnerDone() bool

MinimockMemberAddAsLearnerDone returns true if the count of the MemberAddAsLearner invocations corresponds the number of defined expectations

func (*ClientMock) MinimockMemberAddAsLearnerInspect

func (m *ClientMock) MinimockMemberAddAsLearnerInspect()

MinimockMemberAddAsLearnerInspect logs each unmet expectation

func (*ClientMock) MinimockMemberAddDone

func (m *ClientMock) MinimockMemberAddDone() bool

MinimockMemberAddDone returns true if the count of the MemberAdd invocations corresponds the number of defined expectations

func (*ClientMock) MinimockMemberAddInspect

func (m *ClientMock) MinimockMemberAddInspect()

MinimockMemberAddInspect logs each unmet expectation

func (*ClientMock) MinimockMemberListDone

func (m *ClientMock) MinimockMemberListDone() bool

MinimockMemberListDone returns true if the count of the MemberList invocations corresponds the number of defined expectations

func (*ClientMock) MinimockMemberListInspect

func (m *ClientMock) MinimockMemberListInspect()

MinimockMemberListInspect logs each unmet expectation

func (*ClientMock) MinimockMemberPromoteDone

func (m *ClientMock) MinimockMemberPromoteDone() bool

MinimockMemberPromoteDone returns true if the count of the MemberPromote invocations corresponds the number of defined expectations

func (*ClientMock) MinimockMemberPromoteInspect

func (m *ClientMock) MinimockMemberPromoteInspect()

MinimockMemberPromoteInspect logs each unmet expectation

func (*ClientMock) MinimockMemberRemoveDone

func (m *ClientMock) MinimockMemberRemoveDone() bool

MinimockMemberRemoveDone returns true if the count of the MemberRemove invocations corresponds the number of defined expectations

func (*ClientMock) MinimockMemberRemoveInspect

func (m *ClientMock) MinimockMemberRemoveInspect()

MinimockMemberRemoveInspect logs each unmet expectation

func (*ClientMock) MinimockMemberUpdateDone

func (m *ClientMock) MinimockMemberUpdateDone() bool

MinimockMemberUpdateDone returns true if the count of the MemberUpdate invocations corresponds the number of defined expectations

func (*ClientMock) MinimockMemberUpdateInspect

func (m *ClientMock) MinimockMemberUpdateInspect()

MinimockMemberUpdateInspect logs each unmet expectation

func (*ClientMock) MinimockMoveLeaderDone added in v0.0.6

func (m *ClientMock) MinimockMoveLeaderDone() bool

MinimockMoveLeaderDone returns true if the count of the MoveLeader invocations corresponds the number of defined expectations

func (*ClientMock) MinimockMoveLeaderInspect added in v0.0.6

func (m *ClientMock) MinimockMoveLeaderInspect()

MinimockMoveLeaderInspect logs each unmet expectation

func (*ClientMock) MinimockPutDone

func (m *ClientMock) MinimockPutDone() bool

MinimockPutDone returns true if the count of the Put invocations corresponds the number of defined expectations

func (*ClientMock) MinimockPutInspect

func (m *ClientMock) MinimockPutInspect()

MinimockPutInspect logs each unmet expectation

func (*ClientMock) MinimockRequestProgressDone

func (m *ClientMock) MinimockRequestProgressDone() bool

MinimockRequestProgressDone returns true if the count of the RequestProgress invocations corresponds the number of defined expectations

func (*ClientMock) MinimockRequestProgressInspect

func (m *ClientMock) MinimockRequestProgressInspect()

MinimockRequestProgressInspect logs each unmet expectation

func (*ClientMock) MinimockSnapshotDone added in v0.0.6

func (m *ClientMock) MinimockSnapshotDone() bool

MinimockSnapshotDone returns true if the count of the Snapshot invocations corresponds the number of defined expectations

func (*ClientMock) MinimockSnapshotInspect added in v0.0.6

func (m *ClientMock) MinimockSnapshotInspect()

MinimockSnapshotInspect logs each unmet expectation

func (*ClientMock) MinimockStatusDone added in v0.0.6

func (m *ClientMock) MinimockStatusDone() bool

MinimockStatusDone returns true if the count of the Status invocations corresponds the number of defined expectations

func (*ClientMock) MinimockStatusInspect added in v0.0.6

func (m *ClientMock) MinimockStatusInspect()

MinimockStatusInspect logs each unmet expectation

func (*ClientMock) MinimockTxnDone

func (m *ClientMock) MinimockTxnDone() bool

MinimockTxnDone returns true if the count of the Txn invocations corresponds the number of defined expectations

func (*ClientMock) MinimockTxnInspect

func (m *ClientMock) MinimockTxnInspect()

MinimockTxnInspect logs each unmet expectation

func (*ClientMock) MinimockWait

func (m *ClientMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*ClientMock) MinimockWatchDone

func (m *ClientMock) MinimockWatchDone() bool

MinimockWatchDone returns true if the count of the Watch invocations corresponds the number of defined expectations

func (*ClientMock) MinimockWatchInspect

func (m *ClientMock) MinimockWatchInspect()

MinimockWatchInspect logs each unmet expectation

func (*ClientMock) MoveLeader added in v0.0.6

func (mmMoveLeader *ClientMock) MoveLeader(ctx context.Context, transfereeID uint64) (mp1 *clientv3.MoveLeaderResponse, err error)

MoveLeader implements Client

func (*ClientMock) MoveLeaderAfterCounter added in v0.0.6

func (mmMoveLeader *ClientMock) MoveLeaderAfterCounter() uint64

MoveLeaderAfterCounter returns a count of finished ClientMock.MoveLeader invocations

func (*ClientMock) MoveLeaderBeforeCounter added in v0.0.6

func (mmMoveLeader *ClientMock) MoveLeaderBeforeCounter() uint64

MoveLeaderBeforeCounter returns a count of ClientMock.MoveLeader invocations

func (*ClientMock) Put

func (mmPut *ClientMock) Put(ctx context.Context, key string, val string, opts ...clientv3.OpOption) (pp1 *clientv3.PutResponse, err error)

Put implements Client

func (*ClientMock) PutAfterCounter

func (mmPut *ClientMock) PutAfterCounter() uint64

PutAfterCounter returns a count of finished ClientMock.Put invocations

func (*ClientMock) PutBeforeCounter

func (mmPut *ClientMock) PutBeforeCounter() uint64

PutBeforeCounter returns a count of ClientMock.Put invocations

func (*ClientMock) RequestProgress

func (mmRequestProgress *ClientMock) RequestProgress(ctx context.Context) (err error)

RequestProgress implements Client

func (*ClientMock) RequestProgressAfterCounter

func (mmRequestProgress *ClientMock) RequestProgressAfterCounter() uint64

RequestProgressAfterCounter returns a count of finished ClientMock.RequestProgress invocations

func (*ClientMock) RequestProgressBeforeCounter

func (mmRequestProgress *ClientMock) RequestProgressBeforeCounter() uint64

RequestProgressBeforeCounter returns a count of ClientMock.RequestProgress invocations

func (*ClientMock) Snapshot added in v0.0.6

func (mmSnapshot *ClientMock) Snapshot(ctx context.Context) (r1 io.ReadCloser, err error)

Snapshot implements Client

func (*ClientMock) SnapshotAfterCounter added in v0.0.6

func (mmSnapshot *ClientMock) SnapshotAfterCounter() uint64

SnapshotAfterCounter returns a count of finished ClientMock.Snapshot invocations

func (*ClientMock) SnapshotBeforeCounter added in v0.0.6

func (mmSnapshot *ClientMock) SnapshotBeforeCounter() uint64

SnapshotBeforeCounter returns a count of ClientMock.Snapshot invocations

func (*ClientMock) Status added in v0.0.6

func (mmStatus *ClientMock) Status(ctx context.Context, endpoint string) (sp1 *clientv3.StatusResponse, err error)

Status implements Client

func (*ClientMock) StatusAfterCounter added in v0.0.6

func (mmStatus *ClientMock) StatusAfterCounter() uint64

StatusAfterCounter returns a count of finished ClientMock.Status invocations

func (*ClientMock) StatusBeforeCounter added in v0.0.6

func (mmStatus *ClientMock) StatusBeforeCounter() uint64

StatusBeforeCounter returns a count of ClientMock.Status invocations

func (*ClientMock) Txn

func (mmTxn *ClientMock) Txn(ctx context.Context) (t1 clientv3.Txn)

Txn implements Client

func (*ClientMock) TxnAfterCounter

func (mmTxn *ClientMock) TxnAfterCounter() uint64

TxnAfterCounter returns a count of finished ClientMock.Txn invocations

func (*ClientMock) TxnBeforeCounter

func (mmTxn *ClientMock) TxnBeforeCounter() uint64

TxnBeforeCounter returns a count of ClientMock.Txn invocations

func (*ClientMock) Watch

func (mmWatch *ClientMock) Watch(ctx context.Context, key string, opts ...clientv3.OpOption) (w1 clientv3.WatchChan)

Watch implements Client

func (*ClientMock) WatchAfterCounter

func (mmWatch *ClientMock) WatchAfterCounter() uint64

WatchAfterCounter returns a count of finished ClientMock.Watch invocations

func (*ClientMock) WatchBeforeCounter

func (mmWatch *ClientMock) WatchBeforeCounter() uint64

WatchBeforeCounter returns a count of ClientMock.Watch invocations

type ClientMockAlarmDisarmExpectation added in v0.0.6

type ClientMockAlarmDisarmExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockAlarmDisarmExpectation specifies expectation struct of the Client.AlarmDisarm

func (*ClientMockAlarmDisarmExpectation) Then added in v0.0.6

Then sets up Client.AlarmDisarm return parameters for the expectation previously defined by the When method

type ClientMockAlarmDisarmParams added in v0.0.6

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

ClientMockAlarmDisarmParams contains parameters of the Client.AlarmDisarm

type ClientMockAlarmDisarmResults added in v0.0.6

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

ClientMockAlarmDisarmResults contains results of the Client.AlarmDisarm

type ClientMockAlarmListExpectation added in v0.0.6

type ClientMockAlarmListExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockAlarmListExpectation specifies expectation struct of the Client.AlarmList

func (*ClientMockAlarmListExpectation) Then added in v0.0.6

Then sets up Client.AlarmList return parameters for the expectation previously defined by the When method

type ClientMockAlarmListParams added in v0.0.6

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

ClientMockAlarmListParams contains parameters of the Client.AlarmList

type ClientMockAlarmListResults added in v0.0.6

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

ClientMockAlarmListResults contains results of the Client.AlarmList

type ClientMockCloseExpectation

type ClientMockCloseExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockCloseExpectation specifies expectation struct of the Client.Close

type ClientMockCloseResults

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

ClientMockCloseResults contains results of the Client.Close

type ClientMockCompactExpectation

type ClientMockCompactExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockCompactExpectation specifies expectation struct of the Client.Compact

func (*ClientMockCompactExpectation) Then

Then sets up Client.Compact return parameters for the expectation previously defined by the When method

type ClientMockCompactParams

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

ClientMockCompactParams contains parameters of the Client.Compact

type ClientMockCompactResults

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

ClientMockCompactResults contains results of the Client.Compact

type ClientMockDefragmentExpectation added in v0.0.6

type ClientMockDefragmentExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockDefragmentExpectation specifies expectation struct of the Client.Defragment

func (*ClientMockDefragmentExpectation) Then added in v0.0.6

Then sets up Client.Defragment return parameters for the expectation previously defined by the When method

type ClientMockDefragmentParams added in v0.0.6

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

ClientMockDefragmentParams contains parameters of the Client.Defragment

type ClientMockDefragmentResults added in v0.0.6

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

ClientMockDefragmentResults contains results of the Client.Defragment

type ClientMockDeleteExpectation

type ClientMockDeleteExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockDeleteExpectation specifies expectation struct of the Client.Delete

func (*ClientMockDeleteExpectation) Then

Then sets up Client.Delete return parameters for the expectation previously defined by the When method

type ClientMockDeleteParams

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

ClientMockDeleteParams contains parameters of the Client.Delete

type ClientMockDeleteResults

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

ClientMockDeleteResults contains results of the Client.Delete

type ClientMockDoExpectation

type ClientMockDoExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockDoExpectation specifies expectation struct of the Client.Do

func (*ClientMockDoExpectation) Then

Then sets up Client.Do return parameters for the expectation previously defined by the When method

type ClientMockDoParams

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

ClientMockDoParams contains parameters of the Client.Do

type ClientMockDoResults

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

ClientMockDoResults contains results of the Client.Do

type ClientMockGetExpectation

type ClientMockGetExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockGetExpectation specifies expectation struct of the Client.Get

func (*ClientMockGetExpectation) Then

Then sets up Client.Get return parameters for the expectation previously defined by the When method

type ClientMockGetParams

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

ClientMockGetParams contains parameters of the Client.Get

type ClientMockGetResults

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

ClientMockGetResults contains results of the Client.Get

type ClientMockHashKVExpectation added in v0.0.6

type ClientMockHashKVExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockHashKVExpectation specifies expectation struct of the Client.HashKV

func (*ClientMockHashKVExpectation) Then added in v0.0.6

Then sets up Client.HashKV return parameters for the expectation previously defined by the When method

type ClientMockHashKVParams added in v0.0.6

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

ClientMockHashKVParams contains parameters of the Client.HashKV

type ClientMockHashKVResults added in v0.0.6

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

ClientMockHashKVResults contains results of the Client.HashKV

type ClientMockMemberAddAsLearnerExpectation

type ClientMockMemberAddAsLearnerExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockMemberAddAsLearnerExpectation specifies expectation struct of the Client.MemberAddAsLearner

func (*ClientMockMemberAddAsLearnerExpectation) Then

Then sets up Client.MemberAddAsLearner return parameters for the expectation previously defined by the When method

type ClientMockMemberAddAsLearnerParams

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

ClientMockMemberAddAsLearnerParams contains parameters of the Client.MemberAddAsLearner

type ClientMockMemberAddAsLearnerResults

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

ClientMockMemberAddAsLearnerResults contains results of the Client.MemberAddAsLearner

type ClientMockMemberAddExpectation

type ClientMockMemberAddExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockMemberAddExpectation specifies expectation struct of the Client.MemberAdd

func (*ClientMockMemberAddExpectation) Then

Then sets up Client.MemberAdd return parameters for the expectation previously defined by the When method

type ClientMockMemberAddParams

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

ClientMockMemberAddParams contains parameters of the Client.MemberAdd

type ClientMockMemberAddResults

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

ClientMockMemberAddResults contains results of the Client.MemberAdd

type ClientMockMemberListExpectation

type ClientMockMemberListExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockMemberListExpectation specifies expectation struct of the Client.MemberList

func (*ClientMockMemberListExpectation) Then

Then sets up Client.MemberList return parameters for the expectation previously defined by the When method

type ClientMockMemberListParams

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

ClientMockMemberListParams contains parameters of the Client.MemberList

type ClientMockMemberListResults

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

ClientMockMemberListResults contains results of the Client.MemberList

type ClientMockMemberPromoteExpectation

type ClientMockMemberPromoteExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockMemberPromoteExpectation specifies expectation struct of the Client.MemberPromote

func (*ClientMockMemberPromoteExpectation) Then

Then sets up Client.MemberPromote return parameters for the expectation previously defined by the When method

type ClientMockMemberPromoteParams

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

ClientMockMemberPromoteParams contains parameters of the Client.MemberPromote

type ClientMockMemberPromoteResults

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

ClientMockMemberPromoteResults contains results of the Client.MemberPromote

type ClientMockMemberRemoveExpectation

type ClientMockMemberRemoveExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockMemberRemoveExpectation specifies expectation struct of the Client.MemberRemove

func (*ClientMockMemberRemoveExpectation) Then

Then sets up Client.MemberRemove return parameters for the expectation previously defined by the When method

type ClientMockMemberRemoveParams

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

ClientMockMemberRemoveParams contains parameters of the Client.MemberRemove

type ClientMockMemberRemoveResults

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

ClientMockMemberRemoveResults contains results of the Client.MemberRemove

type ClientMockMemberUpdateExpectation

type ClientMockMemberUpdateExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockMemberUpdateExpectation specifies expectation struct of the Client.MemberUpdate

func (*ClientMockMemberUpdateExpectation) Then

Then sets up Client.MemberUpdate return parameters for the expectation previously defined by the When method

type ClientMockMemberUpdateParams

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

ClientMockMemberUpdateParams contains parameters of the Client.MemberUpdate

type ClientMockMemberUpdateResults

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

ClientMockMemberUpdateResults contains results of the Client.MemberUpdate

type ClientMockMoveLeaderExpectation added in v0.0.6

type ClientMockMoveLeaderExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockMoveLeaderExpectation specifies expectation struct of the Client.MoveLeader

func (*ClientMockMoveLeaderExpectation) Then added in v0.0.6

Then sets up Client.MoveLeader return parameters for the expectation previously defined by the When method

type ClientMockMoveLeaderParams added in v0.0.6

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

ClientMockMoveLeaderParams contains parameters of the Client.MoveLeader

type ClientMockMoveLeaderResults added in v0.0.6

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

ClientMockMoveLeaderResults contains results of the Client.MoveLeader

type ClientMockPutExpectation

type ClientMockPutExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockPutExpectation specifies expectation struct of the Client.Put

func (*ClientMockPutExpectation) Then

Then sets up Client.Put return parameters for the expectation previously defined by the When method

type ClientMockPutParams

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

ClientMockPutParams contains parameters of the Client.Put

type ClientMockPutResults

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

ClientMockPutResults contains results of the Client.Put

type ClientMockRequestProgressExpectation

type ClientMockRequestProgressExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockRequestProgressExpectation specifies expectation struct of the Client.RequestProgress

func (*ClientMockRequestProgressExpectation) Then

Then sets up Client.RequestProgress return parameters for the expectation previously defined by the When method

type ClientMockRequestProgressParams

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

ClientMockRequestProgressParams contains parameters of the Client.RequestProgress

type ClientMockRequestProgressResults

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

ClientMockRequestProgressResults contains results of the Client.RequestProgress

type ClientMockSnapshotExpectation added in v0.0.6

type ClientMockSnapshotExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockSnapshotExpectation specifies expectation struct of the Client.Snapshot

func (*ClientMockSnapshotExpectation) Then added in v0.0.6

Then sets up Client.Snapshot return parameters for the expectation previously defined by the When method

type ClientMockSnapshotParams added in v0.0.6

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

ClientMockSnapshotParams contains parameters of the Client.Snapshot

type ClientMockSnapshotResults added in v0.0.6

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

ClientMockSnapshotResults contains results of the Client.Snapshot

type ClientMockStatusExpectation added in v0.0.6

type ClientMockStatusExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockStatusExpectation specifies expectation struct of the Client.Status

func (*ClientMockStatusExpectation) Then added in v0.0.6

Then sets up Client.Status return parameters for the expectation previously defined by the When method

type ClientMockStatusParams added in v0.0.6

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

ClientMockStatusParams contains parameters of the Client.Status

type ClientMockStatusResults added in v0.0.6

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

ClientMockStatusResults contains results of the Client.Status

type ClientMockTxnExpectation

type ClientMockTxnExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockTxnExpectation specifies expectation struct of the Client.Txn

func (*ClientMockTxnExpectation) Then

Then sets up Client.Txn return parameters for the expectation previously defined by the When method

type ClientMockTxnParams

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

ClientMockTxnParams contains parameters of the Client.Txn

type ClientMockTxnResults

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

ClientMockTxnResults contains results of the Client.Txn

type ClientMockWatchExpectation

type ClientMockWatchExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockWatchExpectation specifies expectation struct of the Client.Watch

func (*ClientMockWatchExpectation) Then

Then sets up Client.Watch return parameters for the expectation previously defined by the When method

type ClientMockWatchParams

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

ClientMockWatchParams contains parameters of the Client.Watch

type ClientMockWatchResults

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

ClientMockWatchResults contains results of the Client.Watch

type Option

type Option func(options *etcdOptions)

func WithBase64Certs

func WithBase64Certs(ca, cert, key string) Option

func WithClientCert

func WithClientCert(clientCert *tls.Certificate, caCert *x509.Certificate) Option

WithClientCert add client certificate authentication

func WithClientCertFile

func WithClientCertFile(caFilePath, certFilePath, keyFilePath string) Option

WithClientCertFile add client certificate authentication from files

func WithInsecureSkipVerify

func WithInsecureSkipVerify() Option

WithInsecureSkipVerify skip tls check

Jump to

Keyboard shortcuts

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