mocks_repository_system

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 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 SystemRepositoryMock

type SystemRepositoryMock struct {
	mock.Mock
}

SystemRepositoryMock is an autogenerated mock type for the SystemRepositoryInterface type

func NewSystemRepositoryMock

func NewSystemRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemRepositoryMock

NewSystemRepositoryMock creates a new instance of SystemRepositoryMock. 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 (*SystemRepositoryMock) CreateRegistry

func (_m *SystemRepositoryMock) CreateRegistry(ctx context.Context, tx repository.TxInterface, host string, kubernetesSecret *string, isDefault bool) (*ent.Registry, error)

CreateRegistry provides a mock function with given fields: ctx, tx, host, kubernetesSecret, isDefault

func (*SystemRepositoryMock) EXPECT

func (*SystemRepositoryMock) GetAllRegistries

func (_m *SystemRepositoryMock) GetAllRegistries(ctx context.Context) ([]*ent.Registry, error)

GetAllRegistries provides a mock function with given fields: ctx

func (*SystemRepositoryMock) GetDefaultRegistry

func (_m *SystemRepositoryMock) GetDefaultRegistry(ctx context.Context) (*ent.Registry, error)

GetDefaultRegistry provides a mock function with given fields: ctx

func (*SystemRepositoryMock) GetImagePullSecrets

func (_m *SystemRepositoryMock) GetImagePullSecrets(ctx context.Context) ([]string, error)

GetImagePullSecrets provides a mock function with given fields: ctx

func (*SystemRepositoryMock) GetSystemSettings

func (_m *SystemRepositoryMock) GetSystemSettings(ctx context.Context, tx repository.TxInterface) (*ent.SystemSetting, error)

GetSystemSettings provides a mock function with given fields: ctx, tx

func (*SystemRepositoryMock) UpdateSystemSettings

UpdateSystemSettings provides a mock function with given fields: ctx, input

type SystemRepositoryMock_CreateRegistry_Call

type SystemRepositoryMock_CreateRegistry_Call struct {
	*mock.Call
}

SystemRepositoryMock_CreateRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRegistry'

func (*SystemRepositoryMock_CreateRegistry_Call) Return

func (*SystemRepositoryMock_CreateRegistry_Call) Run

func (*SystemRepositoryMock_CreateRegistry_Call) RunAndReturn

type SystemRepositoryMock_Expecter

type SystemRepositoryMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*SystemRepositoryMock_Expecter) CreateRegistry

func (_e *SystemRepositoryMock_Expecter) CreateRegistry(ctx interface{}, tx interface{}, host interface{}, kubernetesSecret interface{}, isDefault interface{}) *SystemRepositoryMock_CreateRegistry_Call

CreateRegistry is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • host string
  • kubernetesSecret *string
  • isDefault bool

func (*SystemRepositoryMock_Expecter) GetAllRegistries

func (_e *SystemRepositoryMock_Expecter) GetAllRegistries(ctx interface{}) *SystemRepositoryMock_GetAllRegistries_Call

GetAllRegistries is a helper method to define mock.On call

  • ctx context.Context

func (*SystemRepositoryMock_Expecter) GetDefaultRegistry

func (_e *SystemRepositoryMock_Expecter) GetDefaultRegistry(ctx interface{}) *SystemRepositoryMock_GetDefaultRegistry_Call

GetDefaultRegistry is a helper method to define mock.On call

  • ctx context.Context

func (*SystemRepositoryMock_Expecter) GetImagePullSecrets

func (_e *SystemRepositoryMock_Expecter) GetImagePullSecrets(ctx interface{}) *SystemRepositoryMock_GetImagePullSecrets_Call

GetImagePullSecrets is a helper method to define mock.On call

  • ctx context.Context

func (*SystemRepositoryMock_Expecter) GetSystemSettings

func (_e *SystemRepositoryMock_Expecter) GetSystemSettings(ctx interface{}, tx interface{}) *SystemRepositoryMock_GetSystemSettings_Call

GetSystemSettings is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface

func (*SystemRepositoryMock_Expecter) UpdateSystemSettings

func (_e *SystemRepositoryMock_Expecter) UpdateSystemSettings(ctx interface{}, input interface{}) *SystemRepositoryMock_UpdateSystemSettings_Call

UpdateSystemSettings is a helper method to define mock.On call

  • ctx context.Context
  • input *system_repo.SystemSettingUpdateInput

type SystemRepositoryMock_GetAllRegistries_Call

type SystemRepositoryMock_GetAllRegistries_Call struct {
	*mock.Call
}

SystemRepositoryMock_GetAllRegistries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllRegistries'

func (*SystemRepositoryMock_GetAllRegistries_Call) Return

func (*SystemRepositoryMock_GetAllRegistries_Call) Run

func (*SystemRepositoryMock_GetAllRegistries_Call) RunAndReturn

type SystemRepositoryMock_GetDefaultRegistry_Call

type SystemRepositoryMock_GetDefaultRegistry_Call struct {
	*mock.Call
}

SystemRepositoryMock_GetDefaultRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultRegistry'

func (*SystemRepositoryMock_GetDefaultRegistry_Call) Return

func (*SystemRepositoryMock_GetDefaultRegistry_Call) Run

func (*SystemRepositoryMock_GetDefaultRegistry_Call) RunAndReturn

type SystemRepositoryMock_GetImagePullSecrets_Call

type SystemRepositoryMock_GetImagePullSecrets_Call struct {
	*mock.Call
}

SystemRepositoryMock_GetImagePullSecrets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImagePullSecrets'

func (*SystemRepositoryMock_GetImagePullSecrets_Call) Return

func (*SystemRepositoryMock_GetImagePullSecrets_Call) Run

func (*SystemRepositoryMock_GetImagePullSecrets_Call) RunAndReturn

type SystemRepositoryMock_GetSystemSettings_Call

type SystemRepositoryMock_GetSystemSettings_Call struct {
	*mock.Call
}

SystemRepositoryMock_GetSystemSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSystemSettings'

func (*SystemRepositoryMock_GetSystemSettings_Call) Return

func (*SystemRepositoryMock_GetSystemSettings_Call) Run

func (*SystemRepositoryMock_GetSystemSettings_Call) RunAndReturn

type SystemRepositoryMock_UpdateSystemSettings_Call

type SystemRepositoryMock_UpdateSystemSettings_Call struct {
	*mock.Call
}

SystemRepositoryMock_UpdateSystemSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSystemSettings'

func (*SystemRepositoryMock_UpdateSystemSettings_Call) Return

func (*SystemRepositoryMock_UpdateSystemSettings_Call) Run

Jump to

Keyboard shortcuts

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