etcd

package
v1.29.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	clientv3.Cluster
	clientv3.KV
	clientv3.Watcher
}

func New

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

type ClientMock

type ClientMock struct {
	CloseMock mClientMockClose

	CompactMock mClientMockCompact

	DeleteMock mClientMockDelete

	DoMock mClientMockDo

	GetMock mClientMockGet

	MemberAddMock mClientMockMemberAdd

	MemberAddAsLearnerMock mClientMockMemberAddAsLearner

	MemberListMock mClientMockMemberList

	MemberPromoteMock mClientMockMemberPromote

	MemberRemoveMock mClientMockMemberRemove

	MemberUpdateMock mClientMockMemberUpdate

	PutMock mClientMockPut

	RequestProgressMock mClientMockRequestProgress

	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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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 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 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 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 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 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