Documentation ¶
Index ¶
- type ConfigResolver
- func (_m *ConfigResolver) BuildData(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)
- func (_m *ConfigResolver) EXPECT() *ConfigResolver_Expecter
- func (_m *ConfigResolver) PostHookDBTransformConfigs(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)
- func (_m *ConfigResolver) PreHookDBTransformConfigs(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)
- type ConfigResolver_BuildData_Call
- func (_c *ConfigResolver_BuildData_Call) Return(_a0 map[string]interface{}, _a1 error) *ConfigResolver_BuildData_Call
- func (_c *ConfigResolver_BuildData_Call) Run(run func(ctx context.Context, configs map[string]interface{})) *ConfigResolver_BuildData_Call
- func (_c *ConfigResolver_BuildData_Call) RunAndReturn(...) *ConfigResolver_BuildData_Call
- type ConfigResolver_Expecter
- func (_e *ConfigResolver_Expecter) BuildData(ctx interface{}, configs interface{}) *ConfigResolver_BuildData_Call
- func (_e *ConfigResolver_Expecter) PostHookDBTransformConfigs(ctx interface{}, configs interface{}) *ConfigResolver_PostHookDBTransformConfigs_Call
- func (_e *ConfigResolver_Expecter) PreHookDBTransformConfigs(ctx interface{}, configs interface{}) *ConfigResolver_PreHookDBTransformConfigs_Call
- type ConfigResolver_PostHookDBTransformConfigs_Call
- func (_c *ConfigResolver_PostHookDBTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *ConfigResolver_PostHookDBTransformConfigs_Call
- func (_c *ConfigResolver_PostHookDBTransformConfigs_Call) Run(run func(ctx context.Context, configs map[string]interface{})) *ConfigResolver_PostHookDBTransformConfigs_Call
- func (_c *ConfigResolver_PostHookDBTransformConfigs_Call) RunAndReturn(...) *ConfigResolver_PostHookDBTransformConfigs_Call
- type ConfigResolver_PreHookDBTransformConfigs_Call
- func (_c *ConfigResolver_PreHookDBTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *ConfigResolver_PreHookDBTransformConfigs_Call
- func (_c *ConfigResolver_PreHookDBTransformConfigs_Call) Run(run func(ctx context.Context, configs map[string]interface{})) *ConfigResolver_PreHookDBTransformConfigs_Call
- func (_c *ConfigResolver_PreHookDBTransformConfigs_Call) RunAndReturn(...) *ConfigResolver_PreHookDBTransformConfigs_Call
- type Encryptor
- type Encryptor_Decrypt_Call
- type Encryptor_Encrypt_Call
- type Encryptor_Expecter
- type Repository
- func (_m *Repository) Create(_a0 context.Context, _a1 *receiver.Receiver) error
- func (_m *Repository) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Get(_a0 context.Context, _a1 uint64, _a2 receiver.Filter) (*receiver.Receiver, error)
- func (_m *Repository) List(_a0 context.Context, _a1 receiver.Filter) ([]receiver.Receiver, error)
- func (_m *Repository) PatchLabels(_a0 context.Context, _a1 *receiver.Receiver) error
- func (_m *Repository) Update(_a0 context.Context, _a1 *receiver.Receiver) error
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *Repository_Create_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) Get(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repository_Get_Call
- func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) PatchLabels(_a0 interface{}, _a1 interface{}) *Repository_PatchLabels_Call
- func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_Get_Call
- func (_c *Repository_Get_Call) Return(_a0 *receiver.Receiver, _a1 error) *Repository_Get_Call
- func (_c *Repository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64, _a2 receiver.Filter)) *Repository_Get_Call
- func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, uint64, receiver.Filter) (*receiver.Receiver, error)) *Repository_Get_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 receiver.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, receiver.Filter) ([]receiver.Receiver, error)) *Repository_List_Call
- type Repository_PatchLabels_Call
- func (_c *Repository_PatchLabels_Call) Return(_a0 error) *Repository_PatchLabels_Call
- func (_c *Repository_PatchLabels_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *Repository_PatchLabels_Call
- func (_c *Repository_PatchLabels_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *Repository_PatchLabels_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *Repository_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigResolver ¶
ConfigResolver is an autogenerated mock type for the ConfigResolver type
func NewConfigResolver ¶
func NewConfigResolver(t interface { mock.TestingT Cleanup(func()) }) *ConfigResolver
NewConfigResolver creates a new instance of ConfigResolver. 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 (*ConfigResolver) BuildData ¶
func (_m *ConfigResolver) BuildData(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)
BuildData provides a mock function with given fields: ctx, configs
func (*ConfigResolver) EXPECT ¶
func (_m *ConfigResolver) EXPECT() *ConfigResolver_Expecter
func (*ConfigResolver) PostHookDBTransformConfigs ¶
func (_m *ConfigResolver) PostHookDBTransformConfigs(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)
PostHookDBTransformConfigs provides a mock function with given fields: ctx, configs
func (*ConfigResolver) PreHookDBTransformConfigs ¶
func (_m *ConfigResolver) PreHookDBTransformConfigs(ctx context.Context, configs map[string]interface{}) (map[string]interface{}, error)
PreHookDBTransformConfigs provides a mock function with given fields: ctx, configs
type ConfigResolver_BuildData_Call ¶
ConfigResolver_BuildData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildData'
func (*ConfigResolver_BuildData_Call) Return ¶
func (_c *ConfigResolver_BuildData_Call) Return(_a0 map[string]interface{}, _a1 error) *ConfigResolver_BuildData_Call
func (*ConfigResolver_BuildData_Call) Run ¶
func (_c *ConfigResolver_BuildData_Call) Run(run func(ctx context.Context, configs map[string]interface{})) *ConfigResolver_BuildData_Call
func (*ConfigResolver_BuildData_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ConfigResolver_BuildData_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (map[string]interface{}, error)) *ConfigResolver_BuildData_Call
type ConfigResolver_Expecter ¶
type ConfigResolver_Expecter struct {
// contains filtered or unexported fields
}
func (*ConfigResolver_Expecter) BuildData ¶
func (_e *ConfigResolver_Expecter) BuildData(ctx interface{}, configs interface{}) *ConfigResolver_BuildData_Call
BuildData is a helper method to define mock.On call
- ctx context.Context
- configs map[string]interface{}
func (*ConfigResolver_Expecter) PostHookDBTransformConfigs ¶
func (_e *ConfigResolver_Expecter) PostHookDBTransformConfigs(ctx interface{}, configs interface{}) *ConfigResolver_PostHookDBTransformConfigs_Call
PostHookDBTransformConfigs is a helper method to define mock.On call
- ctx context.Context
- configs map[string]interface{}
func (*ConfigResolver_Expecter) PreHookDBTransformConfigs ¶
func (_e *ConfigResolver_Expecter) PreHookDBTransformConfigs(ctx interface{}, configs interface{}) *ConfigResolver_PreHookDBTransformConfigs_Call
PreHookDBTransformConfigs is a helper method to define mock.On call
- ctx context.Context
- configs map[string]interface{}
type ConfigResolver_PostHookDBTransformConfigs_Call ¶
ConfigResolver_PostHookDBTransformConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostHookDBTransformConfigs'
func (*ConfigResolver_PostHookDBTransformConfigs_Call) Return ¶
func (_c *ConfigResolver_PostHookDBTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *ConfigResolver_PostHookDBTransformConfigs_Call
func (*ConfigResolver_PostHookDBTransformConfigs_Call) Run ¶
func (_c *ConfigResolver_PostHookDBTransformConfigs_Call) Run(run func(ctx context.Context, configs map[string]interface{})) *ConfigResolver_PostHookDBTransformConfigs_Call
func (*ConfigResolver_PostHookDBTransformConfigs_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ConfigResolver_PostHookDBTransformConfigs_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (map[string]interface{}, error)) *ConfigResolver_PostHookDBTransformConfigs_Call
type ConfigResolver_PreHookDBTransformConfigs_Call ¶
ConfigResolver_PreHookDBTransformConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreHookDBTransformConfigs'
func (*ConfigResolver_PreHookDBTransformConfigs_Call) Return ¶
func (_c *ConfigResolver_PreHookDBTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *ConfigResolver_PreHookDBTransformConfigs_Call
func (*ConfigResolver_PreHookDBTransformConfigs_Call) Run ¶
func (_c *ConfigResolver_PreHookDBTransformConfigs_Call) Run(run func(ctx context.Context, configs map[string]interface{})) *ConfigResolver_PreHookDBTransformConfigs_Call
func (*ConfigResolver_PreHookDBTransformConfigs_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ConfigResolver_PreHookDBTransformConfigs_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (map[string]interface{}, error)) *ConfigResolver_PreHookDBTransformConfigs_Call
type Encryptor ¶
Encryptor is an autogenerated mock type for the Encryptor type
func NewEncryptor ¶
NewEncryptor creates a new instance of Encryptor. 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 (*Encryptor) EXPECT ¶
func (_m *Encryptor) EXPECT() *Encryptor_Expecter
type Encryptor_Decrypt_Call ¶
Encryptor_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*Encryptor_Decrypt_Call) Return ¶
func (_c *Encryptor_Decrypt_Call) Return(_a0 string, _a1 error) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) Run ¶
func (_c *Encryptor_Decrypt_Call) Run(run func(str string)) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Encryptor_Decrypt_Call) RunAndReturn(run func(string) (string, error)) *Encryptor_Decrypt_Call
type Encryptor_Encrypt_Call ¶
Encryptor_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*Encryptor_Encrypt_Call) Return ¶
func (_c *Encryptor_Encrypt_Call) Return(_a0 string, _a1 error) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) Run ¶
func (_c *Encryptor_Encrypt_Call) Run(run func(str string)) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Encryptor_Encrypt_Call) RunAndReturn(run func(string) (string, error)) *Encryptor_Encrypt_Call
type Encryptor_Expecter ¶
type Encryptor_Expecter struct {
// contains filtered or unexported fields
}
func (*Encryptor_Expecter) Decrypt ¶
func (_e *Encryptor_Expecter) Decrypt(str interface{}) *Encryptor_Decrypt_Call
Decrypt is a helper method to define mock.On call
- str string
func (*Encryptor_Expecter) Encrypt ¶
func (_e *Encryptor_Expecter) Encrypt(str interface{}) *Encryptor_Encrypt_Call
Encrypt is a helper method to define mock.On call
- str string
type Repository ¶ added in v0.6.12
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶ added in v0.6.12
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) Create ¶ added in v0.6.12
Create provides a mock function with given fields: _a0, _a1
func (*Repository) Delete ¶ added in v0.6.12
func (_m *Repository) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*Repository) EXPECT ¶ added in v0.6.12
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) Get ¶ added in v0.6.12
func (_m *Repository) Get(_a0 context.Context, _a1 uint64, _a2 receiver.Filter) (*receiver.Receiver, error)
Get provides a mock function with given fields: _a0, _a1, _a2
func (*Repository) List ¶ added in v0.6.12
List provides a mock function with given fields: _a0, _a1
func (*Repository) PatchLabels ¶ added in v0.7.0
PatchLabels provides a mock function with given fields: _a0, _a1
type Repository_Create_Call ¶ added in v0.6.12
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶ added in v0.6.12
func (_c *Repository_Create_Call) Return(_a0 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶ added in v0.6.12
func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *Repository_Create_Call
type Repository_Delete_Call ¶ added in v0.6.12
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶ added in v0.6.12
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶ added in v0.6.12
func (_c *Repository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *Repository_Delete_Call
type Repository_Expecter ¶ added in v0.6.12
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Create ¶ added in v0.6.12
func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *receiver.Receiver
func (*Repository_Expecter) Delete ¶ added in v0.6.12
func (_e *Repository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*Repository_Expecter) Get ¶ added in v0.6.12
func (_e *Repository_Expecter) Get(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repository_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
- _a2 receiver.Filter
func (*Repository_Expecter) List ¶ added in v0.6.12
func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 receiver.Filter
func (*Repository_Expecter) PatchLabels ¶ added in v0.7.0
func (_e *Repository_Expecter) PatchLabels(_a0 interface{}, _a1 interface{}) *Repository_PatchLabels_Call
PatchLabels is a helper method to define mock.On call
- _a0 context.Context
- _a1 *receiver.Receiver
func (*Repository_Expecter) Update ¶ added in v0.6.12
func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *receiver.Receiver
type Repository_Get_Call ¶ added in v0.6.12
Repository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Repository_Get_Call) Return ¶ added in v0.6.12
func (_c *Repository_Get_Call) Return(_a0 *receiver.Receiver, _a1 error) *Repository_Get_Call
func (*Repository_Get_Call) Run ¶ added in v0.6.12
func (_c *Repository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64, _a2 receiver.Filter)) *Repository_Get_Call
func (*Repository_Get_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, uint64, receiver.Filter) (*receiver.Receiver, error)) *Repository_Get_Call
type Repository_List_Call ¶ added in v0.6.12
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶ added in v0.6.12
func (_c *Repository_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶ added in v0.6.12
func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 receiver.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, receiver.Filter) ([]receiver.Receiver, error)) *Repository_List_Call
type Repository_PatchLabels_Call ¶ added in v0.7.0
Repository_PatchLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchLabels'
func (*Repository_PatchLabels_Call) Return ¶ added in v0.7.0
func (_c *Repository_PatchLabels_Call) Return(_a0 error) *Repository_PatchLabels_Call
func (*Repository_PatchLabels_Call) Run ¶ added in v0.7.0
func (_c *Repository_PatchLabels_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *Repository_PatchLabels_Call
func (*Repository_PatchLabels_Call) RunAndReturn ¶ added in v0.7.0
func (_c *Repository_PatchLabels_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *Repository_PatchLabels_Call
type Repository_Update_Call ¶ added in v0.6.12
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶ added in v0.6.12
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶ added in v0.6.12
func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *receiver.Receiver) error) *Repository_Update_Call