mocks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdClient

type EtcdClient struct {
	mock.Mock
}

EtcdClient is an autogenerated mock type for the EtcdClient type

func (*EtcdClient) Close

func (_m *EtcdClient) Close() error

Close provides a mock function with given fields:

func (*EtcdClient) Del

func (_m *EtcdClient) Del(key string) (int64, error)

Del provides a mock function with given fields: key

func (*EtcdClient) Get

func (_m *EtcdClient) Get(key string) (string, error)

Get provides a mock function with given fields: key

func (*EtcdClient) List

func (_m *EtcdClient) List(prefix string) ([]*etcd.KeyValue, error)

List provides a mock function with given fields: prefix

func (*EtcdClient) Put

func (_m *EtcdClient) Put(key string, value string) (string, error)

Put provides a mock function with given fields: key, value

func (*EtcdClient) Watch

func (_m *EtcdClient) Watch(prefix string, startIndex int64, onEvent func(*clientv3.Event))

Watch provides a mock function with given fields: prefix, startIndex, onEvent

Jump to

Keyboard shortcuts

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