mocks

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationGetter

type ApplicationGetter struct {
	mock.Mock
}

ApplicationGetter is an autogenerated mock type for the ApplicationGetter type

func NewApplicationGetter

func NewApplicationGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationGetter

NewApplicationGetter creates a new instance of ApplicationGetter. 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 (*ApplicationGetter) EXPECT

func (*ApplicationGetter) Get

func (_mock *ApplicationGetter) Get(ns string, name string) (*v1alpha1.Application, error)

Get provides a mock function for the type ApplicationGetter

type ApplicationGetter_Expecter

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

func (*ApplicationGetter_Expecter) Get

Get is a helper method to define mock.On call

  • ns string
  • name string

type ApplicationGetter_Get_Call

type ApplicationGetter_Get_Call struct {
	*mock.Call
}

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

func (*ApplicationGetter_Get_Call) Return

func (*ApplicationGetter_Get_Call) Run

func (*ApplicationGetter_Get_Call) RunAndReturn

type ExtensionMetricsRegistry

type ExtensionMetricsRegistry struct {
	mock.Mock
}

ExtensionMetricsRegistry is an autogenerated mock type for the ExtensionMetricsRegistry type

func NewExtensionMetricsRegistry

func NewExtensionMetricsRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExtensionMetricsRegistry

NewExtensionMetricsRegistry creates a new instance of ExtensionMetricsRegistry. 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 (*ExtensionMetricsRegistry) EXPECT

func (*ExtensionMetricsRegistry) IncExtensionRequestCounter

func (_mock *ExtensionMetricsRegistry) IncExtensionRequestCounter(extension string, status int)

IncExtensionRequestCounter provides a mock function for the type ExtensionMetricsRegistry

func (*ExtensionMetricsRegistry) ObserveExtensionRequestDuration

func (_mock *ExtensionMetricsRegistry) ObserveExtensionRequestDuration(extension string, duration time.Duration)

ObserveExtensionRequestDuration provides a mock function for the type ExtensionMetricsRegistry

type ExtensionMetricsRegistry_Expecter

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

func (*ExtensionMetricsRegistry_Expecter) IncExtensionRequestCounter

IncExtensionRequestCounter is a helper method to define mock.On call

  • extension string
  • status int

func (*ExtensionMetricsRegistry_Expecter) ObserveExtensionRequestDuration

func (_e *ExtensionMetricsRegistry_Expecter) ObserveExtensionRequestDuration(extension any, duration any) *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call

ObserveExtensionRequestDuration is a helper method to define mock.On call

  • extension string
  • duration time.Duration

type ExtensionMetricsRegistry_IncExtensionRequestCounter_Call

type ExtensionMetricsRegistry_IncExtensionRequestCounter_Call struct {
	*mock.Call
}

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

func (*ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) Return

func (*ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) Run

func (*ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) RunAndReturn

type ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call

type ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call struct {
	*mock.Call
}

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

func (*ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) Return

func (*ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) Run

func (*ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) RunAndReturn

type ProjectGetter

type ProjectGetter struct {
	mock.Mock
}

ProjectGetter is an autogenerated mock type for the ProjectGetter type

func NewProjectGetter

func NewProjectGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectGetter

NewProjectGetter creates a new instance of ProjectGetter. 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 (*ProjectGetter) EXPECT

func (_m *ProjectGetter) EXPECT() *ProjectGetter_Expecter

func (*ProjectGetter) Get

func (_mock *ProjectGetter) Get(name string) (*v1alpha1.AppProject, error)

Get provides a mock function for the type ProjectGetter

func (*ProjectGetter) GetClusters

func (_mock *ProjectGetter) GetClusters(ctx context.Context, project string) ([]*v1alpha1.Cluster, error)

GetClusters provides a mock function for the type ProjectGetter

type ProjectGetter_Expecter

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

func (*ProjectGetter_Expecter) Get

Get is a helper method to define mock.On call

  • name string

func (*ProjectGetter_Expecter) GetClusters

func (_e *ProjectGetter_Expecter) GetClusters(ctx any, project any) *ProjectGetter_GetClusters_Call

GetClusters is a helper method to define mock.On call

  • ctx context.Context
  • project string

type ProjectGetter_GetClusters_Call

type ProjectGetter_GetClusters_Call struct {
	*mock.Call
}

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

func (*ProjectGetter_GetClusters_Call) Return

func (*ProjectGetter_GetClusters_Call) Run

func (*ProjectGetter_GetClusters_Call) RunAndReturn

type ProjectGetter_Get_Call

type ProjectGetter_Get_Call struct {
	*mock.Call
}

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

func (*ProjectGetter_Get_Call) Return

func (*ProjectGetter_Get_Call) Run

func (_c *ProjectGetter_Get_Call) Run(run func(name string)) *ProjectGetter_Get_Call

func (*ProjectGetter_Get_Call) RunAndReturn

func (_c *ProjectGetter_Get_Call) RunAndReturn(run func(name string) (*v1alpha1.AppProject, error)) *ProjectGetter_Get_Call

type RbacEnforcer

type RbacEnforcer struct {
	mock.Mock
}

RbacEnforcer is an autogenerated mock type for the RbacEnforcer type

func NewRbacEnforcer

func NewRbacEnforcer(t interface {
	mock.TestingT
	Cleanup(func())
}) *RbacEnforcer

NewRbacEnforcer creates a new instance of RbacEnforcer. 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 (*RbacEnforcer) EXPECT

func (_m *RbacEnforcer) EXPECT() *RbacEnforcer_Expecter

func (*RbacEnforcer) EnforceErr

func (_mock *RbacEnforcer) EnforceErr(rvals ...any) error

EnforceErr provides a mock function for the type RbacEnforcer

type RbacEnforcer_EnforceErr_Call

type RbacEnforcer_EnforceErr_Call struct {
	*mock.Call
}

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

func (*RbacEnforcer_EnforceErr_Call) Return

func (*RbacEnforcer_EnforceErr_Call) Run

func (_c *RbacEnforcer_EnforceErr_Call) Run(run func(rvals ...any)) *RbacEnforcer_EnforceErr_Call

func (*RbacEnforcer_EnforceErr_Call) RunAndReturn

func (_c *RbacEnforcer_EnforceErr_Call) RunAndReturn(run func(rvals ...any) error) *RbacEnforcer_EnforceErr_Call

type RbacEnforcer_Expecter

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

func (*RbacEnforcer_Expecter) EnforceErr

func (_e *RbacEnforcer_Expecter) EnforceErr(rvals ...any) *RbacEnforcer_EnforceErr_Call

EnforceErr is a helper method to define mock.On call

  • rvals ...any

type SettingsGetter

type SettingsGetter struct {
	mock.Mock
}

SettingsGetter is an autogenerated mock type for the SettingsGetter type

func NewSettingsGetter

func NewSettingsGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SettingsGetter

NewSettingsGetter creates a new instance of SettingsGetter. 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 (*SettingsGetter) EXPECT

func (*SettingsGetter) Get

func (_mock *SettingsGetter) Get() (*settings.Settings, error)

Get provides a mock function for the type SettingsGetter

type SettingsGetter_Expecter

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

func (*SettingsGetter_Expecter) Get

Get is a helper method to define mock.On call

type SettingsGetter_Get_Call

type SettingsGetter_Get_Call struct {
	*mock.Call
}

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

func (*SettingsGetter_Get_Call) Return

func (*SettingsGetter_Get_Call) Run

func (_c *SettingsGetter_Get_Call) Run(run func()) *SettingsGetter_Get_Call

func (*SettingsGetter_Get_Call) RunAndReturn

func (_c *SettingsGetter_Get_Call) RunAndReturn(run func() (*settings.Settings, error)) *SettingsGetter_Get_Call

type UserGetter

type UserGetter struct {
	mock.Mock
}

UserGetter is an autogenerated mock type for the UserGetter type

func NewUserGetter

func NewUserGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserGetter

NewUserGetter creates a new instance of UserGetter. 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 (*UserGetter) EXPECT

func (_m *UserGetter) EXPECT() *UserGetter_Expecter

func (*UserGetter) GetGroups

func (_mock *UserGetter) GetGroups(ctx context.Context) []string

GetGroups provides a mock function for the type UserGetter

func (*UserGetter) GetUserId

func (_mock *UserGetter) GetUserId(ctx context.Context) string

GetUserId provides a mock function for the type UserGetter

func (*UserGetter) GetUsername

func (_mock *UserGetter) GetUsername(ctx context.Context) string

GetUsername provides a mock function for the type UserGetter

type UserGetter_Expecter

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

func (*UserGetter_Expecter) GetGroups

GetGroups is a helper method to define mock.On call

  • ctx context.Context

func (*UserGetter_Expecter) GetUserId

GetUserId is a helper method to define mock.On call

  • ctx context.Context

func (*UserGetter_Expecter) GetUsername

func (_e *UserGetter_Expecter) GetUsername(ctx any) *UserGetter_GetUsername_Call

GetUsername is a helper method to define mock.On call

  • ctx context.Context

type UserGetter_GetGroups_Call

type UserGetter_GetGroups_Call struct {
	*mock.Call
}

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

func (*UserGetter_GetGroups_Call) Return

func (*UserGetter_GetGroups_Call) Run

func (*UserGetter_GetGroups_Call) RunAndReturn

func (_c *UserGetter_GetGroups_Call) RunAndReturn(run func(ctx context.Context) []string) *UserGetter_GetGroups_Call

type UserGetter_GetUserId_Call

type UserGetter_GetUserId_Call struct {
	*mock.Call
}

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

func (*UserGetter_GetUserId_Call) Return

func (*UserGetter_GetUserId_Call) Run

func (*UserGetter_GetUserId_Call) RunAndReturn

type UserGetter_GetUsername_Call

type UserGetter_GetUsername_Call struct {
	*mock.Call
}

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

func (*UserGetter_GetUsername_Call) Return

func (*UserGetter_GetUsername_Call) Run

func (*UserGetter_GetUsername_Call) RunAndReturn

Jump to

Keyboard shortcuts

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