mocks

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDekRepository

type MockDekRepository struct {
	mock.Mock
}

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) Create

func (_mock *MockDekRepository) Create(ctx context.Context, dek *domain.Dek) error

Create provides a mock function for the type MockDekRepository

func (*MockDekRepository) EXPECT

func (*MockDekRepository) Get

func (_mock *MockDekRepository) Get(ctx context.Context, dekID uuid.UUID) (*domain.Dek, error)

Get provides a mock function for the type MockDekRepository

type MockDekRepository_Create_Call

type MockDekRepository_Create_Call struct {
	*mock.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 (*MockDekRepository_Create_Call) Run

func (*MockDekRepository_Create_Call) RunAndReturn

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

type MockDekRepository_Get_Call struct {
	*mock.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 (*MockDekRepository_Get_Call) Run

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

type MockSecretRepository struct {
	mock.Mock
}

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

func (_mock *MockSecretRepository) Create(ctx context.Context, secret *domain0.Secret) error

Create provides a mock function for the type MockSecretRepository

func (*MockSecretRepository) Delete

func (_mock *MockSecretRepository) Delete(ctx context.Context, secretID uuid.UUID) error

Delete provides a mock function for the type MockSecretRepository

func (*MockSecretRepository) EXPECT

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

type MockSecretRepository_Create_Call struct {
	*mock.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 (*MockSecretRepository_Create_Call) Run

func (*MockSecretRepository_Create_Call) RunAndReturn

type MockSecretRepository_Delete_Call

type MockSecretRepository_Delete_Call struct {
	*mock.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 (*MockSecretRepository_Delete_Call) Run

func (*MockSecretRepository_Delete_Call) RunAndReturn

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

type MockSecretRepository_GetByPathAndVersion_Call struct {
	*mock.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 (*MockSecretRepository_GetByPathAndVersion_Call) Run

func (*MockSecretRepository_GetByPathAndVersion_Call) RunAndReturn

type MockSecretRepository_GetByPath_Call

type MockSecretRepository_GetByPath_Call struct {
	*mock.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 (*MockSecretRepository_GetByPath_Call) Run

func (*MockSecretRepository_GetByPath_Call) RunAndReturn

type MockSecretUseCase

type MockSecretUseCase struct {
	mock.Mock
}

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 (*MockSecretUseCase) Get

func (_mock *MockSecretUseCase) Get(ctx context.Context, path string) (*domain0.Secret, error)

Get provides a mock function for the type MockSecretUseCase

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

type MockSecretUseCase_CreateOrUpdate_Call struct {
	*mock.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 (*MockSecretUseCase_CreateOrUpdate_Call) Run

func (*MockSecretUseCase_CreateOrUpdate_Call) RunAndReturn

type MockSecretUseCase_Delete_Call

type MockSecretUseCase_Delete_Call struct {
	*mock.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 (*MockSecretUseCase_Delete_Call) Run

func (*MockSecretUseCase_Delete_Call) RunAndReturn

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

type MockSecretUseCase_GetByVersion_Call struct {
	*mock.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 (*MockSecretUseCase_GetByVersion_Call) Run

func (*MockSecretUseCase_GetByVersion_Call) RunAndReturn

type MockSecretUseCase_Get_Call

type MockSecretUseCase_Get_Call struct {
	*mock.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 (*MockSecretUseCase_Get_Call) Run

func (*MockSecretUseCase_Get_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL