Documentation
¶
Index ¶
- type MockDekRepository
- type MockDekRepository_Expecter
- type MockDekRepository_GetBatchNotKekID_Call
- func (_c *MockDekRepository_GetBatchNotKekID_Call) Return(deks []*domain.Dek, err error) *MockDekRepository_GetBatchNotKekID_Call
- func (_c *MockDekRepository_GetBatchNotKekID_Call) Run(run func(ctx context.Context, kekID uuid.UUID, limit int)) *MockDekRepository_GetBatchNotKekID_Call
- func (_c *MockDekRepository_GetBatchNotKekID_Call) RunAndReturn(...) *MockDekRepository_GetBatchNotKekID_Call
- type MockDekRepository_Update_Call
- func (_c *MockDekRepository_Update_Call) Return(err error) *MockDekRepository_Update_Call
- func (_c *MockDekRepository_Update_Call) Run(run func(ctx context.Context, dek *domain.Dek)) *MockDekRepository_Update_Call
- func (_c *MockDekRepository_Update_Call) RunAndReturn(run func(ctx context.Context, dek *domain.Dek) error) *MockDekRepository_Update_Call
- type MockDekUseCase
- type MockDekUseCase_Expecter
- type MockDekUseCase_Rewrap_Call
- type MockKekRepository
- func (_mock *MockKekRepository) Create(ctx context.Context, kek *domain.Kek) error
- func (_m *MockKekRepository) EXPECT() *MockKekRepository_Expecter
- func (_mock *MockKekRepository) List(ctx context.Context) ([]*domain.Kek, error)
- func (_mock *MockKekRepository) Update(ctx context.Context, kek *domain.Kek) error
- type MockKekRepository_Create_Call
- func (_c *MockKekRepository_Create_Call) Return(err error) *MockKekRepository_Create_Call
- func (_c *MockKekRepository_Create_Call) Run(run func(ctx context.Context, kek *domain.Kek)) *MockKekRepository_Create_Call
- func (_c *MockKekRepository_Create_Call) RunAndReturn(run func(ctx context.Context, kek *domain.Kek) error) *MockKekRepository_Create_Call
- type MockKekRepository_Expecter
- func (_e *MockKekRepository_Expecter) Create(ctx interface{}, kek interface{}) *MockKekRepository_Create_Call
- func (_e *MockKekRepository_Expecter) List(ctx interface{}) *MockKekRepository_List_Call
- func (_e *MockKekRepository_Expecter) Update(ctx interface{}, kek interface{}) *MockKekRepository_Update_Call
- type MockKekRepository_List_Call
- func (_c *MockKekRepository_List_Call) Return(keks []*domain.Kek, err error) *MockKekRepository_List_Call
- func (_c *MockKekRepository_List_Call) Run(run func(ctx context.Context)) *MockKekRepository_List_Call
- func (_c *MockKekRepository_List_Call) RunAndReturn(run func(ctx context.Context) ([]*domain.Kek, error)) *MockKekRepository_List_Call
- type MockKekRepository_Update_Call
- func (_c *MockKekRepository_Update_Call) Return(err error) *MockKekRepository_Update_Call
- func (_c *MockKekRepository_Update_Call) Run(run func(ctx context.Context, kek *domain.Kek)) *MockKekRepository_Update_Call
- func (_c *MockKekRepository_Update_Call) RunAndReturn(run func(ctx context.Context, kek *domain.Kek) error) *MockKekRepository_Update_Call
- type MockKekUseCase
- func (_mock *MockKekUseCase) Create(ctx context.Context, masterKeyChain *domain.MasterKeyChain, ...) error
- func (_m *MockKekUseCase) EXPECT() *MockKekUseCase_Expecter
- func (_mock *MockKekUseCase) Rotate(ctx context.Context, masterKeyChain *domain.MasterKeyChain, ...) error
- func (_mock *MockKekUseCase) Unwrap(ctx context.Context, masterKeyChain *domain.MasterKeyChain) (*domain.KekChain, error)
- type MockKekUseCase_Create_Call
- func (_c *MockKekUseCase_Create_Call) Return(err error) *MockKekUseCase_Create_Call
- func (_c *MockKekUseCase_Create_Call) Run(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, ...)) *MockKekUseCase_Create_Call
- func (_c *MockKekUseCase_Create_Call) RunAndReturn(...) *MockKekUseCase_Create_Call
- type MockKekUseCase_Expecter
- func (_e *MockKekUseCase_Expecter) Create(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Create_Call
- func (_e *MockKekUseCase_Expecter) Rotate(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Rotate_Call
- func (_e *MockKekUseCase_Expecter) Unwrap(ctx interface{}, masterKeyChain interface{}) *MockKekUseCase_Unwrap_Call
- type MockKekUseCase_Rotate_Call
- func (_c *MockKekUseCase_Rotate_Call) Return(err error) *MockKekUseCase_Rotate_Call
- func (_c *MockKekUseCase_Rotate_Call) Run(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, ...)) *MockKekUseCase_Rotate_Call
- func (_c *MockKekUseCase_Rotate_Call) RunAndReturn(...) *MockKekUseCase_Rotate_Call
- type MockKekUseCase_Unwrap_Call
- func (_c *MockKekUseCase_Unwrap_Call) Return(kekChain *domain.KekChain, err error) *MockKekUseCase_Unwrap_Call
- func (_c *MockKekUseCase_Unwrap_Call) Run(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain)) *MockKekUseCase_Unwrap_Call
- func (_c *MockKekUseCase_Unwrap_Call) RunAndReturn(...) *MockKekUseCase_Unwrap_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDekRepository ¶ added in v0.12.0
MockDekRepository is an autogenerated mock type for the DekRepository type
func NewMockDekRepository ¶ added in v0.12.0
func NewMockDekRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockDekRepository
NewMockDekRepository creates a new instance of MockDekRepository. 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 (*MockDekRepository) EXPECT ¶ added in v0.12.0
func (_m *MockDekRepository) EXPECT() *MockDekRepository_Expecter
type MockDekRepository_Expecter ¶ added in v0.12.0
type MockDekRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDekRepository_Expecter) GetBatchNotKekID ¶ added in v0.12.0
func (_e *MockDekRepository_Expecter) GetBatchNotKekID(ctx interface{}, kekID interface{}, limit interface{}) *MockDekRepository_GetBatchNotKekID_Call
GetBatchNotKekID is a helper method to define mock.On call
- ctx context.Context
- kekID uuid.UUID
- limit int
func (*MockDekRepository_Expecter) Update ¶ added in v0.12.0
func (_e *MockDekRepository_Expecter) Update(ctx interface{}, dek interface{}) *MockDekRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- dek *domain.Dek
type MockDekRepository_GetBatchNotKekID_Call ¶ added in v0.12.0
MockDekRepository_GetBatchNotKekID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBatchNotKekID'
func (*MockDekRepository_GetBatchNotKekID_Call) Return ¶ added in v0.12.0
func (_c *MockDekRepository_GetBatchNotKekID_Call) Return(deks []*domain.Dek, err error) *MockDekRepository_GetBatchNotKekID_Call
func (*MockDekRepository_GetBatchNotKekID_Call) Run ¶ added in v0.12.0
func (_c *MockDekRepository_GetBatchNotKekID_Call) Run(run func(ctx context.Context, kekID uuid.UUID, limit int)) *MockDekRepository_GetBatchNotKekID_Call
func (*MockDekRepository_GetBatchNotKekID_Call) RunAndReturn ¶ added in v0.12.0
func (_c *MockDekRepository_GetBatchNotKekID_Call) RunAndReturn(run func(ctx context.Context, kekID uuid.UUID, limit int) ([]*domain.Dek, error)) *MockDekRepository_GetBatchNotKekID_Call
type MockDekRepository_Update_Call ¶ added in v0.12.0
MockDekRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockDekRepository_Update_Call) Return ¶ added in v0.12.0
func (_c *MockDekRepository_Update_Call) Return(err error) *MockDekRepository_Update_Call
func (*MockDekRepository_Update_Call) Run ¶ added in v0.12.0
func (_c *MockDekRepository_Update_Call) Run(run func(ctx context.Context, dek *domain.Dek)) *MockDekRepository_Update_Call
func (*MockDekRepository_Update_Call) RunAndReturn ¶ added in v0.12.0
func (_c *MockDekRepository_Update_Call) RunAndReturn(run func(ctx context.Context, dek *domain.Dek) error) *MockDekRepository_Update_Call
type MockDekUseCase ¶ added in v0.12.0
MockDekUseCase is an autogenerated mock type for the DekUseCase type
func NewMockDekUseCase ¶ added in v0.12.0
func NewMockDekUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockDekUseCase
NewMockDekUseCase creates a new instance of MockDekUseCase. 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 (*MockDekUseCase) EXPECT ¶ added in v0.12.0
func (_m *MockDekUseCase) EXPECT() *MockDekUseCase_Expecter
type MockDekUseCase_Expecter ¶ added in v0.12.0
type MockDekUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDekUseCase_Expecter) Rewrap ¶ added in v0.12.0
func (_e *MockDekUseCase_Expecter) Rewrap(ctx interface{}, kekChain interface{}, newKekID interface{}, batchSize interface{}) *MockDekUseCase_Rewrap_Call
Rewrap is a helper method to define mock.On call
- ctx context.Context
- kekChain *domain.KekChain
- newKekID uuid.UUID
- batchSize int
type MockDekUseCase_Rewrap_Call ¶ added in v0.12.0
MockDekUseCase_Rewrap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rewrap'
func (*MockDekUseCase_Rewrap_Call) Return ¶ added in v0.12.0
func (_c *MockDekUseCase_Rewrap_Call) Return(n int, err error) *MockDekUseCase_Rewrap_Call
func (*MockDekUseCase_Rewrap_Call) Run ¶ added in v0.12.0
func (_c *MockDekUseCase_Rewrap_Call) Run(run func(ctx context.Context, kekChain *domain.KekChain, newKekID uuid.UUID, batchSize int)) *MockDekUseCase_Rewrap_Call
func (*MockDekUseCase_Rewrap_Call) RunAndReturn ¶ added in v0.12.0
type MockKekRepository ¶
MockKekRepository is an autogenerated mock type for the KekRepository type
func NewMockKekRepository ¶
func NewMockKekRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockKekRepository
NewMockKekRepository creates a new instance of MockKekRepository. 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 (*MockKekRepository) EXPECT ¶
func (_m *MockKekRepository) EXPECT() *MockKekRepository_Expecter
type MockKekRepository_Create_Call ¶
MockKekRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockKekRepository_Create_Call) Return ¶
func (_c *MockKekRepository_Create_Call) Return(err error) *MockKekRepository_Create_Call
func (*MockKekRepository_Create_Call) Run ¶
func (_c *MockKekRepository_Create_Call) Run(run func(ctx context.Context, kek *domain.Kek)) *MockKekRepository_Create_Call
func (*MockKekRepository_Create_Call) RunAndReturn ¶
func (_c *MockKekRepository_Create_Call) RunAndReturn(run func(ctx context.Context, kek *domain.Kek) error) *MockKekRepository_Create_Call
type MockKekRepository_Expecter ¶
type MockKekRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockKekRepository_Expecter) Create ¶
func (_e *MockKekRepository_Expecter) Create(ctx interface{}, kek interface{}) *MockKekRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- kek *domain.Kek
func (*MockKekRepository_Expecter) List ¶
func (_e *MockKekRepository_Expecter) List(ctx interface{}) *MockKekRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*MockKekRepository_Expecter) Update ¶
func (_e *MockKekRepository_Expecter) Update(ctx interface{}, kek interface{}) *MockKekRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- kek *domain.Kek
type MockKekRepository_List_Call ¶
MockKekRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockKekRepository_List_Call) Return ¶
func (_c *MockKekRepository_List_Call) Return(keks []*domain.Kek, err error) *MockKekRepository_List_Call
func (*MockKekRepository_List_Call) Run ¶
func (_c *MockKekRepository_List_Call) Run(run func(ctx context.Context)) *MockKekRepository_List_Call
func (*MockKekRepository_List_Call) RunAndReturn ¶
func (_c *MockKekRepository_List_Call) RunAndReturn(run func(ctx context.Context) ([]*domain.Kek, error)) *MockKekRepository_List_Call
type MockKekRepository_Update_Call ¶
MockKekRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockKekRepository_Update_Call) Return ¶
func (_c *MockKekRepository_Update_Call) Return(err error) *MockKekRepository_Update_Call
func (*MockKekRepository_Update_Call) Run ¶
func (_c *MockKekRepository_Update_Call) Run(run func(ctx context.Context, kek *domain.Kek)) *MockKekRepository_Update_Call
func (*MockKekRepository_Update_Call) RunAndReturn ¶
func (_c *MockKekRepository_Update_Call) RunAndReturn(run func(ctx context.Context, kek *domain.Kek) error) *MockKekRepository_Update_Call
type MockKekUseCase ¶
MockKekUseCase is an autogenerated mock type for the KekUseCase type
func NewMockKekUseCase ¶
func NewMockKekUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockKekUseCase
NewMockKekUseCase creates a new instance of MockKekUseCase. 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 (*MockKekUseCase) Create ¶
func (_mock *MockKekUseCase) Create(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error
Create provides a mock function for the type MockKekUseCase
func (*MockKekUseCase) EXPECT ¶
func (_m *MockKekUseCase) EXPECT() *MockKekUseCase_Expecter
func (*MockKekUseCase) Rotate ¶
func (_mock *MockKekUseCase) Rotate(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error
Rotate provides a mock function for the type MockKekUseCase
func (*MockKekUseCase) Unwrap ¶
func (_mock *MockKekUseCase) Unwrap(ctx context.Context, masterKeyChain *domain.MasterKeyChain) (*domain.KekChain, error)
Unwrap provides a mock function for the type MockKekUseCase
type MockKekUseCase_Create_Call ¶
MockKekUseCase_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockKekUseCase_Create_Call) Return ¶
func (_c *MockKekUseCase_Create_Call) Return(err error) *MockKekUseCase_Create_Call
func (*MockKekUseCase_Create_Call) Run ¶
func (_c *MockKekUseCase_Create_Call) Run(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm)) *MockKekUseCase_Create_Call
func (*MockKekUseCase_Create_Call) RunAndReturn ¶
func (_c *MockKekUseCase_Create_Call) RunAndReturn(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error) *MockKekUseCase_Create_Call
type MockKekUseCase_Expecter ¶
type MockKekUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockKekUseCase_Expecter) Create ¶
func (_e *MockKekUseCase_Expecter) Create(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- masterKeyChain *domain.MasterKeyChain
- alg domain.Algorithm
func (*MockKekUseCase_Expecter) Rotate ¶
func (_e *MockKekUseCase_Expecter) Rotate(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Rotate_Call
Rotate is a helper method to define mock.On call
- ctx context.Context
- masterKeyChain *domain.MasterKeyChain
- alg domain.Algorithm
func (*MockKekUseCase_Expecter) Unwrap ¶
func (_e *MockKekUseCase_Expecter) Unwrap(ctx interface{}, masterKeyChain interface{}) *MockKekUseCase_Unwrap_Call
Unwrap is a helper method to define mock.On call
- ctx context.Context
- masterKeyChain *domain.MasterKeyChain
type MockKekUseCase_Rotate_Call ¶
MockKekUseCase_Rotate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rotate'
func (*MockKekUseCase_Rotate_Call) Return ¶
func (_c *MockKekUseCase_Rotate_Call) Return(err error) *MockKekUseCase_Rotate_Call
func (*MockKekUseCase_Rotate_Call) Run ¶
func (_c *MockKekUseCase_Rotate_Call) Run(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm)) *MockKekUseCase_Rotate_Call
func (*MockKekUseCase_Rotate_Call) RunAndReturn ¶
func (_c *MockKekUseCase_Rotate_Call) RunAndReturn(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error) *MockKekUseCase_Rotate_Call
type MockKekUseCase_Unwrap_Call ¶
MockKekUseCase_Unwrap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unwrap'
func (*MockKekUseCase_Unwrap_Call) Return ¶
func (_c *MockKekUseCase_Unwrap_Call) Return(kekChain *domain.KekChain, err error) *MockKekUseCase_Unwrap_Call
func (*MockKekUseCase_Unwrap_Call) Run ¶
func (_c *MockKekUseCase_Unwrap_Call) Run(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain)) *MockKekUseCase_Unwrap_Call
func (*MockKekUseCase_Unwrap_Call) RunAndReturn ¶
func (_c *MockKekUseCase_Unwrap_Call) RunAndReturn(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain) (*domain.KekChain, error)) *MockKekUseCase_Unwrap_Call