Documentation ¶
Index ¶
- type ConfigSyncer
- type ConfigSyncer_Expecter
- type ConfigSyncer_SyncRuntimeConfig_Call
- func (_c *ConfigSyncer_SyncRuntimeConfig_Call) Return(_a0 error) *ConfigSyncer_SyncRuntimeConfig_Call
- func (_c *ConfigSyncer_SyncRuntimeConfig_Call) Run(run func(ctx context.Context, namespaceID uint64, namespaceURN string, ...)) *ConfigSyncer_SyncRuntimeConfig_Call
- func (_c *ConfigSyncer_SyncRuntimeConfig_Call) RunAndReturn(run func(context.Context, uint64, string, provider.Provider) error) *ConfigSyncer_SyncRuntimeConfig_Call
- type Encryptor
- type Encryptor_Decrypt_Call
- func (_c *Encryptor_Decrypt_Call) Return(_a0 secret.MaskableString, _a1 error) *Encryptor_Decrypt_Call
- func (_c *Encryptor_Decrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Decrypt_Call
- func (_c *Encryptor_Decrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, error)) *Encryptor_Decrypt_Call
- type Encryptor_Encrypt_Call
- func (_c *Encryptor_Encrypt_Call) Return(_a0 secret.MaskableString, _a1 error) *Encryptor_Encrypt_Call
- func (_c *Encryptor_Encrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Encrypt_Call
- func (_c *Encryptor_Encrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, error)) *Encryptor_Encrypt_Call
- type Encryptor_Expecter
- type NamespaceRepository
- func (_m *NamespaceRepository) Commit(ctx context.Context) error
- func (_m *NamespaceRepository) Create(_a0 context.Context, _a1 *namespace.EncryptedNamespace) error
- func (_m *NamespaceRepository) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *NamespaceRepository) EXPECT() *NamespaceRepository_Expecter
- func (_m *NamespaceRepository) Get(_a0 context.Context, _a1 uint64) (*namespace.EncryptedNamespace, error)
- func (_m *NamespaceRepository) List(_a0 context.Context) ([]namespace.EncryptedNamespace, error)
- func (_m *NamespaceRepository) Rollback(ctx context.Context, err error) error
- func (_m *NamespaceRepository) Update(_a0 context.Context, _a1 *namespace.EncryptedNamespace) error
- func (_m *NamespaceRepository) WithTransaction(ctx context.Context) context.Context
- type NamespaceRepository_Commit_Call
- func (_c *NamespaceRepository_Commit_Call) Return(_a0 error) *NamespaceRepository_Commit_Call
- func (_c *NamespaceRepository_Commit_Call) Run(run func(ctx context.Context)) *NamespaceRepository_Commit_Call
- func (_c *NamespaceRepository_Commit_Call) RunAndReturn(run func(context.Context) error) *NamespaceRepository_Commit_Call
- type NamespaceRepository_Create_Call
- func (_c *NamespaceRepository_Create_Call) Return(_a0 error) *NamespaceRepository_Create_Call
- func (_c *NamespaceRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.EncryptedNamespace)) *NamespaceRepository_Create_Call
- func (_c *NamespaceRepository_Create_Call) RunAndReturn(run func(context.Context, *namespace.EncryptedNamespace) error) *NamespaceRepository_Create_Call
- type NamespaceRepository_Delete_Call
- func (_c *NamespaceRepository_Delete_Call) Return(_a0 error) *NamespaceRepository_Delete_Call
- func (_c *NamespaceRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceRepository_Delete_Call
- func (_c *NamespaceRepository_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *NamespaceRepository_Delete_Call
- type NamespaceRepository_Expecter
- func (_e *NamespaceRepository_Expecter) Commit(ctx interface{}) *NamespaceRepository_Commit_Call
- func (_e *NamespaceRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Create_Call
- func (_e *NamespaceRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Delete_Call
- func (_e *NamespaceRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Get_Call
- func (_e *NamespaceRepository_Expecter) List(_a0 interface{}) *NamespaceRepository_List_Call
- func (_e *NamespaceRepository_Expecter) Rollback(ctx interface{}, err interface{}) *NamespaceRepository_Rollback_Call
- func (_e *NamespaceRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Update_Call
- func (_e *NamespaceRepository_Expecter) WithTransaction(ctx interface{}) *NamespaceRepository_WithTransaction_Call
- type NamespaceRepository_Get_Call
- func (_c *NamespaceRepository_Get_Call) Return(_a0 *namespace.EncryptedNamespace, _a1 error) *NamespaceRepository_Get_Call
- func (_c *NamespaceRepository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceRepository_Get_Call
- func (_c *NamespaceRepository_Get_Call) RunAndReturn(run func(context.Context, uint64) (*namespace.EncryptedNamespace, error)) *NamespaceRepository_Get_Call
- type NamespaceRepository_List_Call
- func (_c *NamespaceRepository_List_Call) Return(_a0 []namespace.EncryptedNamespace, _a1 error) *NamespaceRepository_List_Call
- func (_c *NamespaceRepository_List_Call) Run(run func(_a0 context.Context)) *NamespaceRepository_List_Call
- func (_c *NamespaceRepository_List_Call) RunAndReturn(run func(context.Context) ([]namespace.EncryptedNamespace, error)) *NamespaceRepository_List_Call
- type NamespaceRepository_Rollback_Call
- func (_c *NamespaceRepository_Rollback_Call) Return(_a0 error) *NamespaceRepository_Rollback_Call
- func (_c *NamespaceRepository_Rollback_Call) Run(run func(ctx context.Context, err error)) *NamespaceRepository_Rollback_Call
- func (_c *NamespaceRepository_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *NamespaceRepository_Rollback_Call
- type NamespaceRepository_Update_Call
- func (_c *NamespaceRepository_Update_Call) Return(_a0 error) *NamespaceRepository_Update_Call
- func (_c *NamespaceRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.EncryptedNamespace)) *NamespaceRepository_Update_Call
- func (_c *NamespaceRepository_Update_Call) RunAndReturn(run func(context.Context, *namespace.EncryptedNamespace) error) *NamespaceRepository_Update_Call
- type NamespaceRepository_WithTransaction_Call
- func (_c *NamespaceRepository_WithTransaction_Call) Return(_a0 context.Context) *NamespaceRepository_WithTransaction_Call
- func (_c *NamespaceRepository_WithTransaction_Call) Run(run func(ctx context.Context)) *NamespaceRepository_WithTransaction_Call
- func (_c *NamespaceRepository_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *NamespaceRepository_WithTransaction_Call
- type ProviderService
- type ProviderService_Expecter
- type ProviderService_Get_Call
- func (_c *ProviderService_Get_Call) Return(_a0 *provider.Provider, _a1 error) *ProviderService_Get_Call
- func (_c *ProviderService_Get_Call) Run(run func(ctx context.Context, id uint64)) *ProviderService_Get_Call
- func (_c *ProviderService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*provider.Provider, error)) *ProviderService_Get_Call
- type Transactor
- type Transactor_Commit_Call
- type Transactor_Expecter
- type Transactor_Rollback_Call
- func (_c *Transactor_Rollback_Call) Return(_a0 error) *Transactor_Rollback_Call
- func (_c *Transactor_Rollback_Call) Run(run func(ctx context.Context, err error)) *Transactor_Rollback_Call
- func (_c *Transactor_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Transactor_Rollback_Call
- type Transactor_WithTransaction_Call
- func (_c *Transactor_WithTransaction_Call) Return(_a0 context.Context) *Transactor_WithTransaction_Call
- func (_c *Transactor_WithTransaction_Call) Run(run func(ctx context.Context)) *Transactor_WithTransaction_Call
- func (_c *Transactor_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Transactor_WithTransaction_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigSyncer ¶
ConfigSyncer is an autogenerated mock type for the ConfigSyncer type
func NewConfigSyncer ¶
func NewConfigSyncer(t interface { mock.TestingT Cleanup(func()) }) *ConfigSyncer
NewConfigSyncer creates a new instance of ConfigSyncer. 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 (*ConfigSyncer) EXPECT ¶
func (_m *ConfigSyncer) EXPECT() *ConfigSyncer_Expecter
func (*ConfigSyncer) SyncRuntimeConfig ¶
func (_m *ConfigSyncer) SyncRuntimeConfig(ctx context.Context, namespaceID uint64, namespaceURN string, prov provider.Provider) error
SyncRuntimeConfig provides a mock function with given fields: ctx, namespaceID, namespaceURN, prov
type ConfigSyncer_Expecter ¶
type ConfigSyncer_Expecter struct {
// contains filtered or unexported fields
}
func (*ConfigSyncer_Expecter) SyncRuntimeConfig ¶
func (_e *ConfigSyncer_Expecter) SyncRuntimeConfig(ctx interface{}, namespaceID interface{}, namespaceURN interface{}, prov interface{}) *ConfigSyncer_SyncRuntimeConfig_Call
SyncRuntimeConfig is a helper method to define mock.On call
- ctx context.Context
- namespaceID uint64
- namespaceURN string
- prov provider.Provider
type ConfigSyncer_SyncRuntimeConfig_Call ¶
ConfigSyncer_SyncRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncRuntimeConfig'
func (*ConfigSyncer_SyncRuntimeConfig_Call) Return ¶
func (_c *ConfigSyncer_SyncRuntimeConfig_Call) Return(_a0 error) *ConfigSyncer_SyncRuntimeConfig_Call
func (*ConfigSyncer_SyncRuntimeConfig_Call) Run ¶
func (_c *ConfigSyncer_SyncRuntimeConfig_Call) Run(run func(ctx context.Context, namespaceID uint64, namespaceURN string, prov provider.Provider)) *ConfigSyncer_SyncRuntimeConfig_Call
func (*ConfigSyncer_SyncRuntimeConfig_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ConfigSyncer_SyncRuntimeConfig_Call) RunAndReturn(run func(context.Context, uint64, string, provider.Provider) error) *ConfigSyncer_SyncRuntimeConfig_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) Decrypt ¶
func (_m *Encryptor) Decrypt(str secret.MaskableString) (secret.MaskableString, error)
Decrypt provides a mock function with given fields: str
func (*Encryptor) EXPECT ¶
func (_m *Encryptor) EXPECT() *Encryptor_Expecter
func (*Encryptor) Encrypt ¶
func (_m *Encryptor) Encrypt(str secret.MaskableString) (secret.MaskableString, error)
Encrypt provides a mock function with given fields: str
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 secret.MaskableString, _a1 error) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) Run ¶
func (_c *Encryptor_Decrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Encryptor_Decrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, 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 secret.MaskableString, _a1 error) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) Run ¶
func (_c *Encryptor_Encrypt_Call) Run(run func(str secret.MaskableString)) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Encryptor_Encrypt_Call) RunAndReturn(run func(secret.MaskableString) (secret.MaskableString, 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 secret.MaskableString
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 secret.MaskableString
type NamespaceRepository ¶
NamespaceRepository is an autogenerated mock type for the Repository type
func NewNamespaceRepository ¶
func NewNamespaceRepository(t interface { mock.TestingT Cleanup(func()) }) *NamespaceRepository
NewNamespaceRepository creates a new instance of NamespaceRepository. 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 (*NamespaceRepository) Commit ¶
func (_m *NamespaceRepository) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*NamespaceRepository) Create ¶
func (_m *NamespaceRepository) Create(_a0 context.Context, _a1 *namespace.EncryptedNamespace) error
Create provides a mock function with given fields: _a0, _a1
func (*NamespaceRepository) Delete ¶
func (_m *NamespaceRepository) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*NamespaceRepository) EXPECT ¶
func (_m *NamespaceRepository) EXPECT() *NamespaceRepository_Expecter
func (*NamespaceRepository) Get ¶
func (_m *NamespaceRepository) Get(_a0 context.Context, _a1 uint64) (*namespace.EncryptedNamespace, error)
Get provides a mock function with given fields: _a0, _a1
func (*NamespaceRepository) List ¶
func (_m *NamespaceRepository) List(_a0 context.Context) ([]namespace.EncryptedNamespace, error)
List provides a mock function with given fields: _a0
func (*NamespaceRepository) Rollback ¶
func (_m *NamespaceRepository) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*NamespaceRepository) Update ¶
func (_m *NamespaceRepository) Update(_a0 context.Context, _a1 *namespace.EncryptedNamespace) error
Update provides a mock function with given fields: _a0, _a1
func (*NamespaceRepository) WithTransaction ¶
func (_m *NamespaceRepository) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type NamespaceRepository_Commit_Call ¶
NamespaceRepository_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*NamespaceRepository_Commit_Call) Return ¶
func (_c *NamespaceRepository_Commit_Call) Return(_a0 error) *NamespaceRepository_Commit_Call
func (*NamespaceRepository_Commit_Call) Run ¶
func (_c *NamespaceRepository_Commit_Call) Run(run func(ctx context.Context)) *NamespaceRepository_Commit_Call
func (*NamespaceRepository_Commit_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_Commit_Call) RunAndReturn(run func(context.Context) error) *NamespaceRepository_Commit_Call
type NamespaceRepository_Create_Call ¶
NamespaceRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*NamespaceRepository_Create_Call) Return ¶
func (_c *NamespaceRepository_Create_Call) Return(_a0 error) *NamespaceRepository_Create_Call
func (*NamespaceRepository_Create_Call) Run ¶
func (_c *NamespaceRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.EncryptedNamespace)) *NamespaceRepository_Create_Call
func (*NamespaceRepository_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_Create_Call) RunAndReturn(run func(context.Context, *namespace.EncryptedNamespace) error) *NamespaceRepository_Create_Call
type NamespaceRepository_Delete_Call ¶
NamespaceRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*NamespaceRepository_Delete_Call) Return ¶
func (_c *NamespaceRepository_Delete_Call) Return(_a0 error) *NamespaceRepository_Delete_Call
func (*NamespaceRepository_Delete_Call) Run ¶
func (_c *NamespaceRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceRepository_Delete_Call
func (*NamespaceRepository_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *NamespaceRepository_Delete_Call
type NamespaceRepository_Expecter ¶
type NamespaceRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceRepository_Expecter) Commit ¶
func (_e *NamespaceRepository_Expecter) Commit(ctx interface{}) *NamespaceRepository_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*NamespaceRepository_Expecter) Create ¶
func (_e *NamespaceRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.EncryptedNamespace
func (*NamespaceRepository_Expecter) Delete ¶
func (_e *NamespaceRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceRepository_Expecter) Get ¶
func (_e *NamespaceRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceRepository_Expecter) List ¶
func (_e *NamespaceRepository_Expecter) List(_a0 interface{}) *NamespaceRepository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
func (*NamespaceRepository_Expecter) Rollback ¶
func (_e *NamespaceRepository_Expecter) Rollback(ctx interface{}, err interface{}) *NamespaceRepository_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- err error
func (*NamespaceRepository_Expecter) Update ¶
func (_e *NamespaceRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.EncryptedNamespace
func (*NamespaceRepository_Expecter) WithTransaction ¶
func (_e *NamespaceRepository_Expecter) WithTransaction(ctx interface{}) *NamespaceRepository_WithTransaction_Call
WithTransaction is a helper method to define mock.On call
- ctx context.Context
type NamespaceRepository_Get_Call ¶
NamespaceRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*NamespaceRepository_Get_Call) Return ¶
func (_c *NamespaceRepository_Get_Call) Return(_a0 *namespace.EncryptedNamespace, _a1 error) *NamespaceRepository_Get_Call
func (*NamespaceRepository_Get_Call) Run ¶
func (_c *NamespaceRepository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceRepository_Get_Call
func (*NamespaceRepository_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_Get_Call) RunAndReturn(run func(context.Context, uint64) (*namespace.EncryptedNamespace, error)) *NamespaceRepository_Get_Call
type NamespaceRepository_List_Call ¶
NamespaceRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*NamespaceRepository_List_Call) Return ¶
func (_c *NamespaceRepository_List_Call) Return(_a0 []namespace.EncryptedNamespace, _a1 error) *NamespaceRepository_List_Call
func (*NamespaceRepository_List_Call) Run ¶
func (_c *NamespaceRepository_List_Call) Run(run func(_a0 context.Context)) *NamespaceRepository_List_Call
func (*NamespaceRepository_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_List_Call) RunAndReturn(run func(context.Context) ([]namespace.EncryptedNamespace, error)) *NamespaceRepository_List_Call
type NamespaceRepository_Rollback_Call ¶
NamespaceRepository_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*NamespaceRepository_Rollback_Call) Return ¶
func (_c *NamespaceRepository_Rollback_Call) Return(_a0 error) *NamespaceRepository_Rollback_Call
func (*NamespaceRepository_Rollback_Call) Run ¶
func (_c *NamespaceRepository_Rollback_Call) Run(run func(ctx context.Context, err error)) *NamespaceRepository_Rollback_Call
func (*NamespaceRepository_Rollback_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *NamespaceRepository_Rollback_Call
type NamespaceRepository_Update_Call ¶
NamespaceRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*NamespaceRepository_Update_Call) Return ¶
func (_c *NamespaceRepository_Update_Call) Return(_a0 error) *NamespaceRepository_Update_Call
func (*NamespaceRepository_Update_Call) Run ¶
func (_c *NamespaceRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.EncryptedNamespace)) *NamespaceRepository_Update_Call
func (*NamespaceRepository_Update_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_Update_Call) RunAndReturn(run func(context.Context, *namespace.EncryptedNamespace) error) *NamespaceRepository_Update_Call
type NamespaceRepository_WithTransaction_Call ¶
NamespaceRepository_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*NamespaceRepository_WithTransaction_Call) Return ¶
func (_c *NamespaceRepository_WithTransaction_Call) Return(_a0 context.Context) *NamespaceRepository_WithTransaction_Call
func (*NamespaceRepository_WithTransaction_Call) Run ¶
func (_c *NamespaceRepository_WithTransaction_Call) Run(run func(ctx context.Context)) *NamespaceRepository_WithTransaction_Call
func (*NamespaceRepository_WithTransaction_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceRepository_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *NamespaceRepository_WithTransaction_Call
type ProviderService ¶
ProviderService is an autogenerated mock type for the ProviderService type
func NewProviderService ¶
func NewProviderService(t interface { mock.TestingT Cleanup(func()) }) *ProviderService
NewProviderService creates a new instance of ProviderService. 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 (*ProviderService) EXPECT ¶
func (_m *ProviderService) EXPECT() *ProviderService_Expecter
type ProviderService_Expecter ¶
type ProviderService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderService_Expecter) Get ¶
func (_e *ProviderService_Expecter) Get(ctx interface{}, id interface{}) *ProviderService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint64
type ProviderService_Get_Call ¶
ProviderService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProviderService_Get_Call) Return ¶
func (_c *ProviderService_Get_Call) Return(_a0 *provider.Provider, _a1 error) *ProviderService_Get_Call
func (*ProviderService_Get_Call) Run ¶
func (_c *ProviderService_Get_Call) Run(run func(ctx context.Context, id uint64)) *ProviderService_Get_Call
func (*ProviderService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ProviderService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*provider.Provider, error)) *ProviderService_Get_Call
type Transactor ¶
Transactor is an autogenerated mock type for the Transactor type
func NewTransactor ¶
func NewTransactor(t interface { mock.TestingT Cleanup(func()) }) *Transactor
NewTransactor creates a new instance of Transactor. 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 (*Transactor) Commit ¶
func (_m *Transactor) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*Transactor) EXPECT ¶
func (_m *Transactor) EXPECT() *Transactor_Expecter
func (*Transactor) Rollback ¶
func (_m *Transactor) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*Transactor) WithTransaction ¶
func (_m *Transactor) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type Transactor_Commit_Call ¶
Transactor_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Transactor_Commit_Call) Return ¶
func (_c *Transactor_Commit_Call) Return(_a0 error) *Transactor_Commit_Call
func (*Transactor_Commit_Call) Run ¶
func (_c *Transactor_Commit_Call) Run(run func(ctx context.Context)) *Transactor_Commit_Call
func (*Transactor_Commit_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Transactor_Commit_Call) RunAndReturn(run func(context.Context) error) *Transactor_Commit_Call
type Transactor_Expecter ¶
type Transactor_Expecter struct {
// contains filtered or unexported fields
}
func (*Transactor_Expecter) Commit ¶
func (_e *Transactor_Expecter) Commit(ctx interface{}) *Transactor_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*Transactor_Expecter) Rollback ¶
func (_e *Transactor_Expecter) Rollback(ctx interface{}, err interface{}) *Transactor_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- err error
func (*Transactor_Expecter) WithTransaction ¶
func (_e *Transactor_Expecter) WithTransaction(ctx interface{}) *Transactor_WithTransaction_Call
WithTransaction is a helper method to define mock.On call
- ctx context.Context
type Transactor_Rollback_Call ¶
Transactor_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Transactor_Rollback_Call) Return ¶
func (_c *Transactor_Rollback_Call) Return(_a0 error) *Transactor_Rollback_Call
func (*Transactor_Rollback_Call) Run ¶
func (_c *Transactor_Rollback_Call) Run(run func(ctx context.Context, err error)) *Transactor_Rollback_Call
func (*Transactor_Rollback_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Transactor_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Transactor_Rollback_Call
type Transactor_WithTransaction_Call ¶
Transactor_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*Transactor_WithTransaction_Call) Return ¶
func (_c *Transactor_WithTransaction_Call) Return(_a0 context.Context) *Transactor_WithTransaction_Call
func (*Transactor_WithTransaction_Call) Run ¶
func (_c *Transactor_WithTransaction_Call) Run(run func(ctx context.Context)) *Transactor_WithTransaction_Call
func (*Transactor_WithTransaction_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Transactor_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Transactor_WithTransaction_Call