Documentation
¶
Index ¶
- type Decrypter
- type Decrypter_Decrypt_Call
- type Decrypter_Expecter
- type GetKeyValuesClientFuncType
- type GetKeyValuesClientFuncType_Execute_Call
- func (_c *GetKeyValuesClientFuncType_Execute_Call) Return(_a0 []core.KeyValue, _a1 error) *GetKeyValuesClientFuncType_Execute_Call
- func (_c *GetKeyValuesClientFuncType_Execute_Call) Run(run func(path string, filters ...core.FilterOption)) *GetKeyValuesClientFuncType_Execute_Call
- func (_c *GetKeyValuesClientFuncType_Execute_Call) RunAndReturn(run func(string, ...core.FilterOption) ([]core.KeyValue, error)) *GetKeyValuesClientFuncType_Execute_Call
- type GetKeyValuesClientFuncType_Expecter
- type KeysAPI
- func (_m *KeysAPI) Create(ctx context.Context, key string, value string) (*client.Response, error)
- func (_m *KeysAPI) CreateInOrder(ctx context.Context, dir string, value string, ...) (*client.Response, error)
- func (_m *KeysAPI) Delete(ctx context.Context, key string, opts *client.DeleteOptions) (*client.Response, error)
- func (_m *KeysAPI) EXPECT() *KeysAPI_Expecter
- func (_m *KeysAPI) Get(ctx context.Context, key string, opts *client.GetOptions) (*client.Response, error)
- func (_m *KeysAPI) Set(ctx context.Context, key string, value string, opts *client.SetOptions) (*client.Response, error)
- func (_m *KeysAPI) Update(ctx context.Context, key string, value string) (*client.Response, error)
- func (_m *KeysAPI) Watcher(key string, opts *client.WatcherOptions) client.Watcher
- type KeysAPI_CreateInOrder_Call
- func (_c *KeysAPI_CreateInOrder_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_CreateInOrder_Call
- func (_c *KeysAPI_CreateInOrder_Call) Run(run func(ctx context.Context, dir string, value string, ...)) *KeysAPI_CreateInOrder_Call
- func (_c *KeysAPI_CreateInOrder_Call) RunAndReturn(...) *KeysAPI_CreateInOrder_Call
- type KeysAPI_Create_Call
- func (_c *KeysAPI_Create_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_Create_Call
- func (_c *KeysAPI_Create_Call) Run(run func(ctx context.Context, key string, value string)) *KeysAPI_Create_Call
- func (_c *KeysAPI_Create_Call) RunAndReturn(run func(context.Context, string, string) (*client.Response, error)) *KeysAPI_Create_Call
- type KeysAPI_Delete_Call
- type KeysAPI_Expecter
- func (_e *KeysAPI_Expecter) Create(ctx interface{}, key interface{}, value interface{}) *KeysAPI_Create_Call
- func (_e *KeysAPI_Expecter) CreateInOrder(ctx interface{}, dir interface{}, value interface{}, opts interface{}) *KeysAPI_CreateInOrder_Call
- func (_e *KeysAPI_Expecter) Delete(ctx interface{}, key interface{}, opts interface{}) *KeysAPI_Delete_Call
- func (_e *KeysAPI_Expecter) Get(ctx interface{}, key interface{}, opts interface{}) *KeysAPI_Get_Call
- func (_e *KeysAPI_Expecter) Set(ctx interface{}, key interface{}, value interface{}, opts interface{}) *KeysAPI_Set_Call
- func (_e *KeysAPI_Expecter) Update(ctx interface{}, key interface{}, value interface{}) *KeysAPI_Update_Call
- func (_e *KeysAPI_Expecter) Watcher(key interface{}, opts interface{}) *KeysAPI_Watcher_Call
- type KeysAPI_Get_Call
- type KeysAPI_Set_Call
- type KeysAPI_Update_Call
- func (_c *KeysAPI_Update_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_Update_Call
- func (_c *KeysAPI_Update_Call) Run(run func(ctx context.Context, key string, value string)) *KeysAPI_Update_Call
- func (_c *KeysAPI_Update_Call) RunAndReturn(run func(context.Context, string, string) (*client.Response, error)) *KeysAPI_Update_Call
- type KeysAPI_Watcher_Call
- func (_c *KeysAPI_Watcher_Call) Return(_a0 client.Watcher) *KeysAPI_Watcher_Call
- func (_c *KeysAPI_Watcher_Call) Run(run func(key string, opts *client.WatcherOptions)) *KeysAPI_Watcher_Call
- func (_c *KeysAPI_Watcher_Call) RunAndReturn(run func(string, *client.WatcherOptions) client.Watcher) *KeysAPI_Watcher_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decrypter ¶
Decrypter is an autogenerated mock type for the decrypter type
func NewDecrypter ¶
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) EXPECT ¶
func (_m *Decrypter) EXPECT() *Decrypter_Expecter
type Decrypter_Decrypt_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 (_c *Decrypter_Decrypt_Call) Return(_a0 string, _a1 error) *Decrypter_Decrypt_Call
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 ¶
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 (_m *GetKeyValuesClientFuncType) EXPECT() *GetKeyValuesClientFuncType_Expecter
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 ¶
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 (_c *GetKeyValuesClientFuncType_Execute_Call) Return(_a0 []core.KeyValue, _a1 error) *GetKeyValuesClientFuncType_Execute_Call
func (*GetKeyValuesClientFuncType_Execute_Call) Run ¶
func (_c *GetKeyValuesClientFuncType_Execute_Call) Run(run func(path string, filters ...core.FilterOption)) *GetKeyValuesClientFuncType_Execute_Call
func (*GetKeyValuesClientFuncType_Execute_Call) RunAndReturn ¶
func (_c *GetKeyValuesClientFuncType_Execute_Call) RunAndReturn(run func(string, ...core.FilterOption) ([]core.KeyValue, error)) *GetKeyValuesClientFuncType_Execute_Call
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 ¶
KeysAPI is an autogenerated mock type for the KeysAPI type
func NewKeysAPI ¶
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) 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
type KeysAPI_CreateInOrder_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 (_c *KeysAPI_CreateInOrder_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_CreateInOrder_Call
func (*KeysAPI_CreateInOrder_Call) Run ¶
func (_c *KeysAPI_CreateInOrder_Call) Run(run func(ctx context.Context, dir string, value string, opts *client.CreateInOrderOptions)) *KeysAPI_CreateInOrder_Call
func (*KeysAPI_CreateInOrder_Call) RunAndReturn ¶
func (_c *KeysAPI_CreateInOrder_Call) RunAndReturn(run func(context.Context, string, string, *client.CreateInOrderOptions) (*client.Response, error)) *KeysAPI_CreateInOrder_Call
type KeysAPI_Create_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 (_c *KeysAPI_Create_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_Create_Call
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 ¶
func (_c *KeysAPI_Create_Call) RunAndReturn(run func(context.Context, string, string) (*client.Response, error)) *KeysAPI_Create_Call
type KeysAPI_Delete_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 (_c *KeysAPI_Delete_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_Delete_Call
func (*KeysAPI_Delete_Call) Run ¶
func (_c *KeysAPI_Delete_Call) Run(run func(ctx context.Context, key string, opts *client.DeleteOptions)) *KeysAPI_Delete_Call
func (*KeysAPI_Delete_Call) RunAndReturn ¶
func (_c *KeysAPI_Delete_Call) RunAndReturn(run func(context.Context, string, *client.DeleteOptions) (*client.Response, error)) *KeysAPI_Delete_Call
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 ¶
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 ¶
func (_c *KeysAPI_Get_Call) RunAndReturn(run func(context.Context, string, *client.GetOptions) (*client.Response, error)) *KeysAPI_Get_Call
type KeysAPI_Set_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 ¶
func (_c *KeysAPI_Set_Call) RunAndReturn(run func(context.Context, string, string, *client.SetOptions) (*client.Response, error)) *KeysAPI_Set_Call
type KeysAPI_Update_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 (_c *KeysAPI_Update_Call) Return(_a0 *client.Response, _a1 error) *KeysAPI_Update_Call
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 ¶
func (_c *KeysAPI_Update_Call) RunAndReturn(run func(context.Context, string, string) (*client.Response, error)) *KeysAPI_Update_Call
type KeysAPI_Watcher_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 (_c *KeysAPI_Watcher_Call) Return(_a0 client.Watcher) *KeysAPI_Watcher_Call
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 ¶
func (_c *KeysAPI_Watcher_Call) RunAndReturn(run func(string, *client.WatcherOptions) client.Watcher) *KeysAPI_Watcher_Call