mocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.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 Decrypter

type Decrypter struct {
	mock.Mock
}

Decrypter is an autogenerated mock type for the decrypter type

func NewDecrypter

func NewDecrypter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Decrypter

NewDecrypter creates a new instance of Decrypter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Decrypter) Decrypt

func (_m *Decrypter) Decrypt(input string) (string, error)

Decrypt provides a mock function with given fields: input

func (*Decrypter) EXPECT

func (_m *Decrypter) EXPECT() *Decrypter_Expecter

type Decrypter_Decrypt_Call

type Decrypter_Decrypt_Call struct {
	*mock.Call
}

Decrypter_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'

func (*Decrypter_Decrypt_Call) Return

func (*Decrypter_Decrypt_Call) Run

func (_c *Decrypter_Decrypt_Call) Run(run func(input string)) *Decrypter_Decrypt_Call

func (*Decrypter_Decrypt_Call) RunAndReturn

func (_c *Decrypter_Decrypt_Call) RunAndReturn(run func(string) (string, error)) *Decrypter_Decrypt_Call

type Decrypter_Expecter

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

func (*Decrypter_Expecter) Decrypt

func (_e *Decrypter_Expecter) Decrypt(input interface{}) *Decrypter_Decrypt_Call

Decrypt is a helper method to define mock.On call

  • input string

type GetKeyValuesClientFuncType

type GetKeyValuesClientFuncType struct {
	mock.Mock
}

GetKeyValuesClientFuncType is an autogenerated mock type for the getKeyValuesClientFuncType type

func NewGetKeyValuesClientFuncType

func NewGetKeyValuesClientFuncType(t interface {
	mock.TestingT
	Cleanup(func())
}) *GetKeyValuesClientFuncType

NewGetKeyValuesClientFuncType creates a new instance of GetKeyValuesClientFuncType. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GetKeyValuesClientFuncType) EXPECT

func (*GetKeyValuesClientFuncType) Execute

func (_m *GetKeyValuesClientFuncType) Execute(path string, filters ...core.FilterOption) ([]core.KeyValue, error)

Execute provides a mock function with given fields: path, filters

type GetKeyValuesClientFuncType_Execute_Call

type GetKeyValuesClientFuncType_Execute_Call struct {
	*mock.Call
}

GetKeyValuesClientFuncType_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*GetKeyValuesClientFuncType_Execute_Call) Return

func (*GetKeyValuesClientFuncType_Execute_Call) Run

func (*GetKeyValuesClientFuncType_Execute_Call) RunAndReturn

type GetKeyValuesClientFuncType_Expecter

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

func (*GetKeyValuesClientFuncType_Expecter) Execute

func (_e *GetKeyValuesClientFuncType_Expecter) Execute(path interface{}, filters ...interface{}) *GetKeyValuesClientFuncType_Execute_Call

Execute is a helper method to define mock.On call

  • path string
  • filters ...core.FilterOption

type KeysAPI

type KeysAPI struct {
	mock.Mock
}

KeysAPI is an autogenerated mock type for the KeysAPI type

func NewKeysAPI

func NewKeysAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeysAPI

NewKeysAPI creates a new instance of KeysAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KeysAPI) Create

func (_m *KeysAPI) Create(ctx context.Context, key string, value string) (*client.Response, error)

Create provides a mock function with given fields: ctx, key, value

func (*KeysAPI) CreateInOrder

func (_m *KeysAPI) CreateInOrder(ctx context.Context, dir string, value string, opts *client.CreateInOrderOptions) (*client.Response, error)

CreateInOrder provides a mock function with given fields: ctx, dir, value, opts

func (*KeysAPI) Delete

func (_m *KeysAPI) Delete(ctx context.Context, key string, opts *client.DeleteOptions) (*client.Response, error)

Delete provides a mock function with given fields: ctx, key, opts

func (*KeysAPI) EXPECT

func (_m *KeysAPI) EXPECT() *KeysAPI_Expecter

func (*KeysAPI) Get

func (_m *KeysAPI) Get(ctx context.Context, key string, opts *client.GetOptions) (*client.Response, error)

Get provides a mock function with given fields: ctx, key, opts

func (*KeysAPI) Set

func (_m *KeysAPI) Set(ctx context.Context, key string, value string, opts *client.SetOptions) (*client.Response, error)

Set provides a mock function with given fields: ctx, key, value, opts

func (*KeysAPI) Update

func (_m *KeysAPI) Update(ctx context.Context, key string, value string) (*client.Response, error)

Update provides a mock function with given fields: ctx, key, value

func (*KeysAPI) Watcher

func (_m *KeysAPI) Watcher(key string, opts *client.WatcherOptions) client.Watcher

Watcher provides a mock function with given fields: key, opts

type KeysAPI_CreateInOrder_Call

type KeysAPI_CreateInOrder_Call struct {
	*mock.Call
}

KeysAPI_CreateInOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateInOrder'

func (*KeysAPI_CreateInOrder_Call) Return

func (*KeysAPI_CreateInOrder_Call) Run

func (*KeysAPI_CreateInOrder_Call) RunAndReturn

type KeysAPI_Create_Call

type KeysAPI_Create_Call struct {
	*mock.Call
}

KeysAPI_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*KeysAPI_Create_Call) Return

func (*KeysAPI_Create_Call) Run

func (_c *KeysAPI_Create_Call) Run(run func(ctx context.Context, key string, value string)) *KeysAPI_Create_Call

func (*KeysAPI_Create_Call) RunAndReturn

type KeysAPI_Delete_Call

type KeysAPI_Delete_Call struct {
	*mock.Call
}

KeysAPI_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*KeysAPI_Delete_Call) Return

func (*KeysAPI_Delete_Call) Run

func (*KeysAPI_Delete_Call) RunAndReturn

type KeysAPI_Expecter

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

func (*KeysAPI_Expecter) Create

func (_e *KeysAPI_Expecter) Create(ctx interface{}, key interface{}, value interface{}) *KeysAPI_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value string

func (*KeysAPI_Expecter) CreateInOrder

func (_e *KeysAPI_Expecter) CreateInOrder(ctx interface{}, dir interface{}, value interface{}, opts interface{}) *KeysAPI_CreateInOrder_Call

CreateInOrder is a helper method to define mock.On call

  • ctx context.Context
  • dir string
  • value string
  • opts *client.CreateInOrderOptions

func (*KeysAPI_Expecter) Delete

func (_e *KeysAPI_Expecter) Delete(ctx interface{}, key interface{}, opts interface{}) *KeysAPI_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • opts *client.DeleteOptions

func (*KeysAPI_Expecter) Get

func (_e *KeysAPI_Expecter) Get(ctx interface{}, key interface{}, opts interface{}) *KeysAPI_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • opts *client.GetOptions

func (*KeysAPI_Expecter) Set

func (_e *KeysAPI_Expecter) Set(ctx interface{}, key interface{}, value interface{}, opts interface{}) *KeysAPI_Set_Call

Set is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value string
  • opts *client.SetOptions

func (*KeysAPI_Expecter) Update

func (_e *KeysAPI_Expecter) Update(ctx interface{}, key interface{}, value interface{}) *KeysAPI_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value string

func (*KeysAPI_Expecter) Watcher

func (_e *KeysAPI_Expecter) Watcher(key interface{}, opts interface{}) *KeysAPI_Watcher_Call

Watcher is a helper method to define mock.On call

  • key string
  • opts *client.WatcherOptions

type KeysAPI_Get_Call

type KeysAPI_Get_Call struct {
	*mock.Call
}

KeysAPI_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*KeysAPI_Get_Call) Return

func (_c *KeysAPI_Get_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_Get_Call

func (*KeysAPI_Get_Call) Run

func (_c *KeysAPI_Get_Call) Run(run func(ctx context.Context, key string, opts *client.GetOptions)) *KeysAPI_Get_Call

func (*KeysAPI_Get_Call) RunAndReturn

type KeysAPI_Set_Call

type KeysAPI_Set_Call struct {
	*mock.Call
}

KeysAPI_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'

func (*KeysAPI_Set_Call) Return

func (_c *KeysAPI_Set_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_Set_Call

func (*KeysAPI_Set_Call) Run

func (_c *KeysAPI_Set_Call) Run(run func(ctx context.Context, key string, value string, opts *client.SetOptions)) *KeysAPI_Set_Call

func (*KeysAPI_Set_Call) RunAndReturn

type KeysAPI_Update_Call

type KeysAPI_Update_Call struct {
	*mock.Call
}

KeysAPI_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*KeysAPI_Update_Call) Return

func (*KeysAPI_Update_Call) Run

func (_c *KeysAPI_Update_Call) Run(run func(ctx context.Context, key string, value string)) *KeysAPI_Update_Call

func (*KeysAPI_Update_Call) RunAndReturn

type KeysAPI_Watcher_Call

type KeysAPI_Watcher_Call struct {
	*mock.Call
}

KeysAPI_Watcher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watcher'

func (*KeysAPI_Watcher_Call) Return

func (*KeysAPI_Watcher_Call) Run

func (_c *KeysAPI_Watcher_Call) Run(run func(key string, opts *client.WatcherOptions)) *KeysAPI_Watcher_Call

func (*KeysAPI_Watcher_Call) RunAndReturn

Jump to

Keyboard shortcuts

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