Documentation
¶
Index ¶
- type SystemRepositoryMock
- func (_m *SystemRepositoryMock) CreateRegistry(ctx context.Context, tx repository.TxInterface, host string, ...) (*ent.Registry, error)
- func (_m *SystemRepositoryMock) EXPECT() *SystemRepositoryMock_Expecter
- func (_m *SystemRepositoryMock) GetAllRegistries(ctx context.Context) ([]*ent.Registry, error)
- func (_m *SystemRepositoryMock) GetDefaultRegistry(ctx context.Context) (*ent.Registry, error)
- func (_m *SystemRepositoryMock) GetImagePullSecrets(ctx context.Context) ([]string, error)
- func (_m *SystemRepositoryMock) GetSystemSettings(ctx context.Context, tx repository.TxInterface) (*ent.SystemSetting, error)
- func (_m *SystemRepositoryMock) UpdateSystemSettings(ctx context.Context, input *system_repo.SystemSettingUpdateInput) (*ent.SystemSetting, error)
- type SystemRepositoryMock_CreateRegistry_Call
- func (_c *SystemRepositoryMock_CreateRegistry_Call) Return(_a0 *ent.Registry, _a1 error) *SystemRepositoryMock_CreateRegistry_Call
- func (_c *SystemRepositoryMock_CreateRegistry_Call) Run(run func(ctx context.Context, tx repository.TxInterface, host string, ...)) *SystemRepositoryMock_CreateRegistry_Call
- func (_c *SystemRepositoryMock_CreateRegistry_Call) RunAndReturn(...) *SystemRepositoryMock_CreateRegistry_Call
- type SystemRepositoryMock_Expecter
- func (_e *SystemRepositoryMock_Expecter) CreateRegistry(ctx interface{}, tx interface{}, host interface{}, ...) *SystemRepositoryMock_CreateRegistry_Call
- func (_e *SystemRepositoryMock_Expecter) GetAllRegistries(ctx interface{}) *SystemRepositoryMock_GetAllRegistries_Call
- func (_e *SystemRepositoryMock_Expecter) GetDefaultRegistry(ctx interface{}) *SystemRepositoryMock_GetDefaultRegistry_Call
- func (_e *SystemRepositoryMock_Expecter) GetImagePullSecrets(ctx interface{}) *SystemRepositoryMock_GetImagePullSecrets_Call
- func (_e *SystemRepositoryMock_Expecter) GetSystemSettings(ctx interface{}, tx interface{}) *SystemRepositoryMock_GetSystemSettings_Call
- func (_e *SystemRepositoryMock_Expecter) UpdateSystemSettings(ctx interface{}, input interface{}) *SystemRepositoryMock_UpdateSystemSettings_Call
- type SystemRepositoryMock_GetAllRegistries_Call
- func (_c *SystemRepositoryMock_GetAllRegistries_Call) Return(_a0 []*ent.Registry, _a1 error) *SystemRepositoryMock_GetAllRegistries_Call
- func (_c *SystemRepositoryMock_GetAllRegistries_Call) Run(run func(ctx context.Context)) *SystemRepositoryMock_GetAllRegistries_Call
- func (_c *SystemRepositoryMock_GetAllRegistries_Call) RunAndReturn(run func(context.Context) ([]*ent.Registry, error)) *SystemRepositoryMock_GetAllRegistries_Call
- type SystemRepositoryMock_GetDefaultRegistry_Call
- func (_c *SystemRepositoryMock_GetDefaultRegistry_Call) Return(_a0 *ent.Registry, _a1 error) *SystemRepositoryMock_GetDefaultRegistry_Call
- func (_c *SystemRepositoryMock_GetDefaultRegistry_Call) Run(run func(ctx context.Context)) *SystemRepositoryMock_GetDefaultRegistry_Call
- func (_c *SystemRepositoryMock_GetDefaultRegistry_Call) RunAndReturn(run func(context.Context) (*ent.Registry, error)) *SystemRepositoryMock_GetDefaultRegistry_Call
- type SystemRepositoryMock_GetImagePullSecrets_Call
- func (_c *SystemRepositoryMock_GetImagePullSecrets_Call) Return(_a0 []string, _a1 error) *SystemRepositoryMock_GetImagePullSecrets_Call
- func (_c *SystemRepositoryMock_GetImagePullSecrets_Call) Run(run func(ctx context.Context)) *SystemRepositoryMock_GetImagePullSecrets_Call
- func (_c *SystemRepositoryMock_GetImagePullSecrets_Call) RunAndReturn(run func(context.Context) ([]string, error)) *SystemRepositoryMock_GetImagePullSecrets_Call
- type SystemRepositoryMock_GetSystemSettings_Call
- func (_c *SystemRepositoryMock_GetSystemSettings_Call) Return(_a0 *ent.SystemSetting, _a1 error) *SystemRepositoryMock_GetSystemSettings_Call
- func (_c *SystemRepositoryMock_GetSystemSettings_Call) Run(run func(ctx context.Context, tx repository.TxInterface)) *SystemRepositoryMock_GetSystemSettings_Call
- func (_c *SystemRepositoryMock_GetSystemSettings_Call) RunAndReturn(run func(context.Context, repository.TxInterface) (*ent.SystemSetting, error)) *SystemRepositoryMock_GetSystemSettings_Call
- type SystemRepositoryMock_UpdateSystemSettings_Call
- func (_c *SystemRepositoryMock_UpdateSystemSettings_Call) Return(settings *ent.SystemSetting, err error) *SystemRepositoryMock_UpdateSystemSettings_Call
- func (_c *SystemRepositoryMock_UpdateSystemSettings_Call) Run(run func(ctx context.Context, input *system_repo.SystemSettingUpdateInput)) *SystemRepositoryMock_UpdateSystemSettings_Call
- func (_c *SystemRepositoryMock_UpdateSystemSettings_Call) RunAndReturn(...) *SystemRepositoryMock_UpdateSystemSettings_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemRepositoryMock ¶
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 (_m *SystemRepositoryMock) EXPECT() *SystemRepositoryMock_Expecter
func (*SystemRepositoryMock) GetAllRegistries ¶
GetAllRegistries provides a mock function with given fields: ctx
func (*SystemRepositoryMock) GetDefaultRegistry ¶
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 ¶
func (_m *SystemRepositoryMock) UpdateSystemSettings(ctx context.Context, input *system_repo.SystemSettingUpdateInput) (*ent.SystemSetting, error)
UpdateSystemSettings provides a mock function with given fields: ctx, input
type SystemRepositoryMock_CreateRegistry_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 (_c *SystemRepositoryMock_CreateRegistry_Call) Return(_a0 *ent.Registry, _a1 error) *SystemRepositoryMock_CreateRegistry_Call
func (*SystemRepositoryMock_CreateRegistry_Call) Run ¶
func (_c *SystemRepositoryMock_CreateRegistry_Call) Run(run func(ctx context.Context, tx repository.TxInterface, host string, kubernetesSecret *string, isDefault bool)) *SystemRepositoryMock_CreateRegistry_Call
func (*SystemRepositoryMock_CreateRegistry_Call) RunAndReturn ¶
func (_c *SystemRepositoryMock_CreateRegistry_Call) RunAndReturn(run func(context.Context, repository.TxInterface, string, *string, bool) (*ent.Registry, error)) *SystemRepositoryMock_CreateRegistry_Call
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 ¶
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 (_c *SystemRepositoryMock_GetAllRegistries_Call) Return(_a0 []*ent.Registry, _a1 error) *SystemRepositoryMock_GetAllRegistries_Call
func (*SystemRepositoryMock_GetAllRegistries_Call) Run ¶
func (_c *SystemRepositoryMock_GetAllRegistries_Call) Run(run func(ctx context.Context)) *SystemRepositoryMock_GetAllRegistries_Call
func (*SystemRepositoryMock_GetAllRegistries_Call) RunAndReturn ¶
func (_c *SystemRepositoryMock_GetAllRegistries_Call) RunAndReturn(run func(context.Context) ([]*ent.Registry, error)) *SystemRepositoryMock_GetAllRegistries_Call
type SystemRepositoryMock_GetDefaultRegistry_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 (_c *SystemRepositoryMock_GetDefaultRegistry_Call) Return(_a0 *ent.Registry, _a1 error) *SystemRepositoryMock_GetDefaultRegistry_Call
func (*SystemRepositoryMock_GetDefaultRegistry_Call) Run ¶
func (_c *SystemRepositoryMock_GetDefaultRegistry_Call) Run(run func(ctx context.Context)) *SystemRepositoryMock_GetDefaultRegistry_Call
func (*SystemRepositoryMock_GetDefaultRegistry_Call) RunAndReturn ¶
func (_c *SystemRepositoryMock_GetDefaultRegistry_Call) RunAndReturn(run func(context.Context) (*ent.Registry, error)) *SystemRepositoryMock_GetDefaultRegistry_Call
type SystemRepositoryMock_GetImagePullSecrets_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 (_c *SystemRepositoryMock_GetImagePullSecrets_Call) Return(_a0 []string, _a1 error) *SystemRepositoryMock_GetImagePullSecrets_Call
func (*SystemRepositoryMock_GetImagePullSecrets_Call) Run ¶
func (_c *SystemRepositoryMock_GetImagePullSecrets_Call) Run(run func(ctx context.Context)) *SystemRepositoryMock_GetImagePullSecrets_Call
func (*SystemRepositoryMock_GetImagePullSecrets_Call) RunAndReturn ¶
func (_c *SystemRepositoryMock_GetImagePullSecrets_Call) RunAndReturn(run func(context.Context) ([]string, error)) *SystemRepositoryMock_GetImagePullSecrets_Call
type SystemRepositoryMock_GetSystemSettings_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 (_c *SystemRepositoryMock_GetSystemSettings_Call) Return(_a0 *ent.SystemSetting, _a1 error) *SystemRepositoryMock_GetSystemSettings_Call
func (*SystemRepositoryMock_GetSystemSettings_Call) Run ¶
func (_c *SystemRepositoryMock_GetSystemSettings_Call) Run(run func(ctx context.Context, tx repository.TxInterface)) *SystemRepositoryMock_GetSystemSettings_Call
func (*SystemRepositoryMock_GetSystemSettings_Call) RunAndReturn ¶
func (_c *SystemRepositoryMock_GetSystemSettings_Call) RunAndReturn(run func(context.Context, repository.TxInterface) (*ent.SystemSetting, error)) *SystemRepositoryMock_GetSystemSettings_Call
type SystemRepositoryMock_UpdateSystemSettings_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 (_c *SystemRepositoryMock_UpdateSystemSettings_Call) Return(settings *ent.SystemSetting, err error) *SystemRepositoryMock_UpdateSystemSettings_Call
func (*SystemRepositoryMock_UpdateSystemSettings_Call) Run ¶
func (_c *SystemRepositoryMock_UpdateSystemSettings_Call) Run(run func(ctx context.Context, input *system_repo.SystemSettingUpdateInput)) *SystemRepositoryMock_UpdateSystemSettings_Call
func (*SystemRepositoryMock_UpdateSystemSettings_Call) RunAndReturn ¶
func (_c *SystemRepositoryMock_UpdateSystemSettings_Call) RunAndReturn(run func(context.Context, *system_repo.SystemSettingUpdateInput) (*ent.SystemSetting, error)) *SystemRepositoryMock_UpdateSystemSettings_Call