Documentation
¶
Index ¶
- type MockDekRepository
- type MockDekRepository_Create_Call
- func (_c *MockDekRepository_Create_Call) Return(err error) *MockDekRepository_Create_Call
- func (_c *MockDekRepository_Create_Call) Run(run func(ctx context.Context, dek *domain.Dek)) *MockDekRepository_Create_Call
- func (_c *MockDekRepository_Create_Call) RunAndReturn(run func(ctx context.Context, dek *domain.Dek) error) *MockDekRepository_Create_Call
- type MockDekRepository_Expecter
- type MockDekRepository_Get_Call
- func (_c *MockDekRepository_Get_Call) Return(dek *domain.Dek, err error) *MockDekRepository_Get_Call
- func (_c *MockDekRepository_Get_Call) Run(run func(ctx context.Context, dekID uuid.UUID)) *MockDekRepository_Get_Call
- func (_c *MockDekRepository_Get_Call) RunAndReturn(run func(ctx context.Context, dekID uuid.UUID) (*domain.Dek, error)) *MockDekRepository_Get_Call
- type MockSecretRepository
- func (_mock *MockSecretRepository) Create(ctx context.Context, secret *domain0.Secret) error
- func (_mock *MockSecretRepository) Delete(ctx context.Context, secretID uuid.UUID) error
- func (_m *MockSecretRepository) EXPECT() *MockSecretRepository_Expecter
- func (_mock *MockSecretRepository) GetByPath(ctx context.Context, path string) (*domain0.Secret, error)
- func (_mock *MockSecretRepository) GetByPathAndVersion(ctx context.Context, path string, version uint) (*domain0.Secret, error)
- type MockSecretRepository_Create_Call
- func (_c *MockSecretRepository_Create_Call) Return(err error) *MockSecretRepository_Create_Call
- func (_c *MockSecretRepository_Create_Call) Run(run func(ctx context.Context, secret *domain0.Secret)) *MockSecretRepository_Create_Call
- func (_c *MockSecretRepository_Create_Call) RunAndReturn(run func(ctx context.Context, secret *domain0.Secret) error) *MockSecretRepository_Create_Call
- type MockSecretRepository_Delete_Call
- func (_c *MockSecretRepository_Delete_Call) Return(err error) *MockSecretRepository_Delete_Call
- func (_c *MockSecretRepository_Delete_Call) Run(run func(ctx context.Context, secretID uuid.UUID)) *MockSecretRepository_Delete_Call
- func (_c *MockSecretRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, secretID uuid.UUID) error) *MockSecretRepository_Delete_Call
- type MockSecretRepository_Expecter
- func (_e *MockSecretRepository_Expecter) Create(ctx interface{}, secret interface{}) *MockSecretRepository_Create_Call
- func (_e *MockSecretRepository_Expecter) Delete(ctx interface{}, secretID interface{}) *MockSecretRepository_Delete_Call
- func (_e *MockSecretRepository_Expecter) GetByPath(ctx interface{}, path interface{}) *MockSecretRepository_GetByPath_Call
- func (_e *MockSecretRepository_Expecter) GetByPathAndVersion(ctx interface{}, path interface{}, version interface{}) *MockSecretRepository_GetByPathAndVersion_Call
- type MockSecretRepository_GetByPathAndVersion_Call
- func (_c *MockSecretRepository_GetByPathAndVersion_Call) Return(secret *domain0.Secret, err error) *MockSecretRepository_GetByPathAndVersion_Call
- func (_c *MockSecretRepository_GetByPathAndVersion_Call) Run(run func(ctx context.Context, path string, version uint)) *MockSecretRepository_GetByPathAndVersion_Call
- func (_c *MockSecretRepository_GetByPathAndVersion_Call) RunAndReturn(...) *MockSecretRepository_GetByPathAndVersion_Call
- type MockSecretRepository_GetByPath_Call
- func (_c *MockSecretRepository_GetByPath_Call) Return(secret *domain0.Secret, err error) *MockSecretRepository_GetByPath_Call
- func (_c *MockSecretRepository_GetByPath_Call) Run(run func(ctx context.Context, path string)) *MockSecretRepository_GetByPath_Call
- func (_c *MockSecretRepository_GetByPath_Call) RunAndReturn(run func(ctx context.Context, path string) (*domain0.Secret, error)) *MockSecretRepository_GetByPath_Call
- type MockSecretUseCase
- func (_mock *MockSecretUseCase) CreateOrUpdate(ctx context.Context, path string, value []byte) (*domain0.Secret, error)
- func (_mock *MockSecretUseCase) Delete(ctx context.Context, path string) error
- func (_m *MockSecretUseCase) EXPECT() *MockSecretUseCase_Expecter
- func (_mock *MockSecretUseCase) Get(ctx context.Context, path string) (*domain0.Secret, error)
- func (_mock *MockSecretUseCase) GetByVersion(ctx context.Context, path string, version uint) (*domain0.Secret, error)
- type MockSecretUseCase_CreateOrUpdate_Call
- func (_c *MockSecretUseCase_CreateOrUpdate_Call) Return(secret *domain0.Secret, err error) *MockSecretUseCase_CreateOrUpdate_Call
- func (_c *MockSecretUseCase_CreateOrUpdate_Call) Run(run func(ctx context.Context, path string, value []byte)) *MockSecretUseCase_CreateOrUpdate_Call
- func (_c *MockSecretUseCase_CreateOrUpdate_Call) RunAndReturn(...) *MockSecretUseCase_CreateOrUpdate_Call
- type MockSecretUseCase_Delete_Call
- func (_c *MockSecretUseCase_Delete_Call) Return(err error) *MockSecretUseCase_Delete_Call
- func (_c *MockSecretUseCase_Delete_Call) Run(run func(ctx context.Context, path string)) *MockSecretUseCase_Delete_Call
- func (_c *MockSecretUseCase_Delete_Call) RunAndReturn(run func(ctx context.Context, path string) error) *MockSecretUseCase_Delete_Call
- type MockSecretUseCase_Expecter
- func (_e *MockSecretUseCase_Expecter) CreateOrUpdate(ctx interface{}, path interface{}, value interface{}) *MockSecretUseCase_CreateOrUpdate_Call
- func (_e *MockSecretUseCase_Expecter) Delete(ctx interface{}, path interface{}) *MockSecretUseCase_Delete_Call
- func (_e *MockSecretUseCase_Expecter) Get(ctx interface{}, path interface{}) *MockSecretUseCase_Get_Call
- func (_e *MockSecretUseCase_Expecter) GetByVersion(ctx interface{}, path interface{}, version interface{}) *MockSecretUseCase_GetByVersion_Call
- type MockSecretUseCase_GetByVersion_Call
- func (_c *MockSecretUseCase_GetByVersion_Call) Return(secret *domain0.Secret, err error) *MockSecretUseCase_GetByVersion_Call
- func (_c *MockSecretUseCase_GetByVersion_Call) Run(run func(ctx context.Context, path string, version uint)) *MockSecretUseCase_GetByVersion_Call
- func (_c *MockSecretUseCase_GetByVersion_Call) RunAndReturn(...) *MockSecretUseCase_GetByVersion_Call
- type MockSecretUseCase_Get_Call
- func (_c *MockSecretUseCase_Get_Call) Return(secret *domain0.Secret, err error) *MockSecretUseCase_Get_Call
- func (_c *MockSecretUseCase_Get_Call) Run(run func(ctx context.Context, path string)) *MockSecretUseCase_Get_Call
- func (_c *MockSecretUseCase_Get_Call) RunAndReturn(run func(ctx context.Context, path string) (*domain0.Secret, error)) *MockSecretUseCase_Get_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDekRepository ¶
MockDekRepository is an autogenerated mock type for the DekRepository type
func NewMockDekRepository ¶
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 ¶
func (_m *MockDekRepository) EXPECT() *MockDekRepository_Expecter
type MockDekRepository_Create_Call ¶
MockDekRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockDekRepository_Create_Call) Return ¶
func (_c *MockDekRepository_Create_Call) Return(err error) *MockDekRepository_Create_Call
func (*MockDekRepository_Create_Call) Run ¶
func (_c *MockDekRepository_Create_Call) Run(run func(ctx context.Context, dek *domain.Dek)) *MockDekRepository_Create_Call
func (*MockDekRepository_Create_Call) RunAndReturn ¶
func (_c *MockDekRepository_Create_Call) RunAndReturn(run func(ctx context.Context, dek *domain.Dek) error) *MockDekRepository_Create_Call
type MockDekRepository_Expecter ¶
type MockDekRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDekRepository_Expecter) Create ¶
func (_e *MockDekRepository_Expecter) Create(ctx interface{}, dek interface{}) *MockDekRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- dek *domain.Dek
func (*MockDekRepository_Expecter) Get ¶
func (_e *MockDekRepository_Expecter) Get(ctx interface{}, dekID interface{}) *MockDekRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- dekID uuid.UUID
type MockDekRepository_Get_Call ¶
MockDekRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockDekRepository_Get_Call) Return ¶
func (_c *MockDekRepository_Get_Call) Return(dek *domain.Dek, err error) *MockDekRepository_Get_Call
func (*MockDekRepository_Get_Call) Run ¶
func (_c *MockDekRepository_Get_Call) Run(run func(ctx context.Context, dekID uuid.UUID)) *MockDekRepository_Get_Call
func (*MockDekRepository_Get_Call) RunAndReturn ¶
func (_c *MockDekRepository_Get_Call) RunAndReturn(run func(ctx context.Context, dekID uuid.UUID) (*domain.Dek, error)) *MockDekRepository_Get_Call
type MockSecretRepository ¶
MockSecretRepository is an autogenerated mock type for the SecretRepository type
func NewMockSecretRepository ¶
func NewMockSecretRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockSecretRepository
NewMockSecretRepository creates a new instance of MockSecretRepository. 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 (*MockSecretRepository) Create ¶
Create provides a mock function for the type MockSecretRepository
func (*MockSecretRepository) Delete ¶
Delete provides a mock function for the type MockSecretRepository
func (*MockSecretRepository) EXPECT ¶
func (_m *MockSecretRepository) EXPECT() *MockSecretRepository_Expecter
func (*MockSecretRepository) GetByPath ¶
func (_mock *MockSecretRepository) GetByPath(ctx context.Context, path string) (*domain0.Secret, error)
GetByPath provides a mock function for the type MockSecretRepository
func (*MockSecretRepository) GetByPathAndVersion ¶
func (_mock *MockSecretRepository) GetByPathAndVersion(ctx context.Context, path string, version uint) (*domain0.Secret, error)
GetByPathAndVersion provides a mock function for the type MockSecretRepository
type MockSecretRepository_Create_Call ¶
MockSecretRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockSecretRepository_Create_Call) Return ¶
func (_c *MockSecretRepository_Create_Call) Return(err error) *MockSecretRepository_Create_Call
func (*MockSecretRepository_Create_Call) Run ¶
func (_c *MockSecretRepository_Create_Call) Run(run func(ctx context.Context, secret *domain0.Secret)) *MockSecretRepository_Create_Call
func (*MockSecretRepository_Create_Call) RunAndReturn ¶
func (_c *MockSecretRepository_Create_Call) RunAndReturn(run func(ctx context.Context, secret *domain0.Secret) error) *MockSecretRepository_Create_Call
type MockSecretRepository_Delete_Call ¶
MockSecretRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockSecretRepository_Delete_Call) Return ¶
func (_c *MockSecretRepository_Delete_Call) Return(err error) *MockSecretRepository_Delete_Call
func (*MockSecretRepository_Delete_Call) Run ¶
func (_c *MockSecretRepository_Delete_Call) Run(run func(ctx context.Context, secretID uuid.UUID)) *MockSecretRepository_Delete_Call
func (*MockSecretRepository_Delete_Call) RunAndReturn ¶
func (_c *MockSecretRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, secretID uuid.UUID) error) *MockSecretRepository_Delete_Call
type MockSecretRepository_Expecter ¶
type MockSecretRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSecretRepository_Expecter) Create ¶
func (_e *MockSecretRepository_Expecter) Create(ctx interface{}, secret interface{}) *MockSecretRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- secret *domain0.Secret
func (*MockSecretRepository_Expecter) Delete ¶
func (_e *MockSecretRepository_Expecter) Delete(ctx interface{}, secretID interface{}) *MockSecretRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- secretID uuid.UUID
func (*MockSecretRepository_Expecter) GetByPath ¶
func (_e *MockSecretRepository_Expecter) GetByPath(ctx interface{}, path interface{}) *MockSecretRepository_GetByPath_Call
GetByPath is a helper method to define mock.On call
- ctx context.Context
- path string
func (*MockSecretRepository_Expecter) GetByPathAndVersion ¶
func (_e *MockSecretRepository_Expecter) GetByPathAndVersion(ctx interface{}, path interface{}, version interface{}) *MockSecretRepository_GetByPathAndVersion_Call
GetByPathAndVersion is a helper method to define mock.On call
- ctx context.Context
- path string
- version uint
type MockSecretRepository_GetByPathAndVersion_Call ¶
MockSecretRepository_GetByPathAndVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByPathAndVersion'
func (*MockSecretRepository_GetByPathAndVersion_Call) Return ¶
func (_c *MockSecretRepository_GetByPathAndVersion_Call) Return(secret *domain0.Secret, err error) *MockSecretRepository_GetByPathAndVersion_Call
func (*MockSecretRepository_GetByPathAndVersion_Call) Run ¶
func (_c *MockSecretRepository_GetByPathAndVersion_Call) Run(run func(ctx context.Context, path string, version uint)) *MockSecretRepository_GetByPathAndVersion_Call
func (*MockSecretRepository_GetByPathAndVersion_Call) RunAndReturn ¶
func (_c *MockSecretRepository_GetByPathAndVersion_Call) RunAndReturn(run func(ctx context.Context, path string, version uint) (*domain0.Secret, error)) *MockSecretRepository_GetByPathAndVersion_Call
type MockSecretRepository_GetByPath_Call ¶
MockSecretRepository_GetByPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByPath'
func (*MockSecretRepository_GetByPath_Call) Return ¶
func (_c *MockSecretRepository_GetByPath_Call) Return(secret *domain0.Secret, err error) *MockSecretRepository_GetByPath_Call
func (*MockSecretRepository_GetByPath_Call) Run ¶
func (_c *MockSecretRepository_GetByPath_Call) Run(run func(ctx context.Context, path string)) *MockSecretRepository_GetByPath_Call
func (*MockSecretRepository_GetByPath_Call) RunAndReturn ¶
func (_c *MockSecretRepository_GetByPath_Call) RunAndReturn(run func(ctx context.Context, path string) (*domain0.Secret, error)) *MockSecretRepository_GetByPath_Call
type MockSecretUseCase ¶
MockSecretUseCase is an autogenerated mock type for the SecretUseCase type
func NewMockSecretUseCase ¶
func NewMockSecretUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockSecretUseCase
NewMockSecretUseCase creates a new instance of MockSecretUseCase. 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 (*MockSecretUseCase) CreateOrUpdate ¶
func (_mock *MockSecretUseCase) CreateOrUpdate(ctx context.Context, path string, value []byte) (*domain0.Secret, error)
CreateOrUpdate provides a mock function for the type MockSecretUseCase
func (*MockSecretUseCase) Delete ¶
func (_mock *MockSecretUseCase) Delete(ctx context.Context, path string) error
Delete provides a mock function for the type MockSecretUseCase
func (*MockSecretUseCase) EXPECT ¶
func (_m *MockSecretUseCase) EXPECT() *MockSecretUseCase_Expecter
func (*MockSecretUseCase) GetByVersion ¶
func (_mock *MockSecretUseCase) GetByVersion(ctx context.Context, path string, version uint) (*domain0.Secret, error)
GetByVersion provides a mock function for the type MockSecretUseCase
type MockSecretUseCase_CreateOrUpdate_Call ¶
MockSecretUseCase_CreateOrUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdate'
func (*MockSecretUseCase_CreateOrUpdate_Call) Return ¶
func (_c *MockSecretUseCase_CreateOrUpdate_Call) Return(secret *domain0.Secret, err error) *MockSecretUseCase_CreateOrUpdate_Call
func (*MockSecretUseCase_CreateOrUpdate_Call) Run ¶
func (_c *MockSecretUseCase_CreateOrUpdate_Call) Run(run func(ctx context.Context, path string, value []byte)) *MockSecretUseCase_CreateOrUpdate_Call
func (*MockSecretUseCase_CreateOrUpdate_Call) RunAndReturn ¶
func (_c *MockSecretUseCase_CreateOrUpdate_Call) RunAndReturn(run func(ctx context.Context, path string, value []byte) (*domain0.Secret, error)) *MockSecretUseCase_CreateOrUpdate_Call
type MockSecretUseCase_Delete_Call ¶
MockSecretUseCase_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockSecretUseCase_Delete_Call) Return ¶
func (_c *MockSecretUseCase_Delete_Call) Return(err error) *MockSecretUseCase_Delete_Call
func (*MockSecretUseCase_Delete_Call) Run ¶
func (_c *MockSecretUseCase_Delete_Call) Run(run func(ctx context.Context, path string)) *MockSecretUseCase_Delete_Call
func (*MockSecretUseCase_Delete_Call) RunAndReturn ¶
func (_c *MockSecretUseCase_Delete_Call) RunAndReturn(run func(ctx context.Context, path string) error) *MockSecretUseCase_Delete_Call
type MockSecretUseCase_Expecter ¶
type MockSecretUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSecretUseCase_Expecter) CreateOrUpdate ¶
func (_e *MockSecretUseCase_Expecter) CreateOrUpdate(ctx interface{}, path interface{}, value interface{}) *MockSecretUseCase_CreateOrUpdate_Call
CreateOrUpdate is a helper method to define mock.On call
- ctx context.Context
- path string
- value []byte
func (*MockSecretUseCase_Expecter) Delete ¶
func (_e *MockSecretUseCase_Expecter) Delete(ctx interface{}, path interface{}) *MockSecretUseCase_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- path string
func (*MockSecretUseCase_Expecter) Get ¶
func (_e *MockSecretUseCase_Expecter) Get(ctx interface{}, path interface{}) *MockSecretUseCase_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- path string
func (*MockSecretUseCase_Expecter) GetByVersion ¶
func (_e *MockSecretUseCase_Expecter) GetByVersion(ctx interface{}, path interface{}, version interface{}) *MockSecretUseCase_GetByVersion_Call
GetByVersion is a helper method to define mock.On call
- ctx context.Context
- path string
- version uint
type MockSecretUseCase_GetByVersion_Call ¶
MockSecretUseCase_GetByVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByVersion'
func (*MockSecretUseCase_GetByVersion_Call) Return ¶
func (_c *MockSecretUseCase_GetByVersion_Call) Return(secret *domain0.Secret, err error) *MockSecretUseCase_GetByVersion_Call
func (*MockSecretUseCase_GetByVersion_Call) Run ¶
func (_c *MockSecretUseCase_GetByVersion_Call) Run(run func(ctx context.Context, path string, version uint)) *MockSecretUseCase_GetByVersion_Call
func (*MockSecretUseCase_GetByVersion_Call) RunAndReturn ¶
func (_c *MockSecretUseCase_GetByVersion_Call) RunAndReturn(run func(ctx context.Context, path string, version uint) (*domain0.Secret, error)) *MockSecretUseCase_GetByVersion_Call
type MockSecretUseCase_Get_Call ¶
MockSecretUseCase_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockSecretUseCase_Get_Call) Return ¶
func (_c *MockSecretUseCase_Get_Call) Return(secret *domain0.Secret, err error) *MockSecretUseCase_Get_Call
func (*MockSecretUseCase_Get_Call) Run ¶
func (_c *MockSecretUseCase_Get_Call) Run(run func(ctx context.Context, path string)) *MockSecretUseCase_Get_Call
func (*MockSecretUseCase_Get_Call) RunAndReturn ¶
func (_c *MockSecretUseCase_Get_Call) RunAndReturn(run func(ctx context.Context, path string) (*domain0.Secret, error)) *MockSecretUseCase_Get_Call