Documentation
¶
Index ¶
- type ApplicationGetter
- type ApplicationGetter_Expecter
- type ApplicationGetter_Get_Call
- func (_c *ApplicationGetter_Get_Call) Return(application *v1alpha1.Application, err error) *ApplicationGetter_Get_Call
- func (_c *ApplicationGetter_Get_Call) Run(run func(ns string, name string)) *ApplicationGetter_Get_Call
- func (_c *ApplicationGetter_Get_Call) RunAndReturn(run func(ns string, name string) (*v1alpha1.Application, error)) *ApplicationGetter_Get_Call
- type ExtensionMetricsRegistry
- type ExtensionMetricsRegistry_Expecter
- func (_e *ExtensionMetricsRegistry_Expecter) IncExtensionRequestCounter(extension any, status any) *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
- func (_e *ExtensionMetricsRegistry_Expecter) ObserveExtensionRequestDuration(extension any, duration any) *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call
- type ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
- func (_c *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) Return() *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
- func (_c *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) Run(run func(extension string, status int)) *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
- func (_c *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) RunAndReturn(run func(extension string, status int)) *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
- type ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call
- func (_c *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) Return() *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call
- func (_c *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) Run(run func(extension string, duration time.Duration)) *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call
- func (_c *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) RunAndReturn(run func(extension string, duration time.Duration)) *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call
- type ProjectGetter
- type ProjectGetter_Expecter
- type ProjectGetter_GetClusters_Call
- func (_c *ProjectGetter_GetClusters_Call) Return(clusters []*v1alpha1.Cluster, err error) *ProjectGetter_GetClusters_Call
- func (_c *ProjectGetter_GetClusters_Call) Run(run func(ctx context.Context, project string)) *ProjectGetter_GetClusters_Call
- func (_c *ProjectGetter_GetClusters_Call) RunAndReturn(run func(ctx context.Context, project string) ([]*v1alpha1.Cluster, error)) *ProjectGetter_GetClusters_Call
- type ProjectGetter_Get_Call
- func (_c *ProjectGetter_Get_Call) Return(appProject *v1alpha1.AppProject, err error) *ProjectGetter_Get_Call
- func (_c *ProjectGetter_Get_Call) Run(run func(name string)) *ProjectGetter_Get_Call
- func (_c *ProjectGetter_Get_Call) RunAndReturn(run func(name string) (*v1alpha1.AppProject, error)) *ProjectGetter_Get_Call
- type RbacEnforcer
- type RbacEnforcer_EnforceErr_Call
- type RbacEnforcer_Expecter
- type SettingsGetter
- type SettingsGetter_Expecter
- type SettingsGetter_Get_Call
- type UserGetter
- type UserGetter_Expecter
- type UserGetter_GetGroups_Call
- func (_c *UserGetter_GetGroups_Call) Return(strings []string) *UserGetter_GetGroups_Call
- func (_c *UserGetter_GetGroups_Call) Run(run func(ctx context.Context)) *UserGetter_GetGroups_Call
- func (_c *UserGetter_GetGroups_Call) RunAndReturn(run func(ctx context.Context) []string) *UserGetter_GetGroups_Call
- type UserGetter_GetUserId_Call
- type UserGetter_GetUsername_Call
- func (_c *UserGetter_GetUsername_Call) Return(s string) *UserGetter_GetUsername_Call
- func (_c *UserGetter_GetUsername_Call) Run(run func(ctx context.Context)) *UserGetter_GetUsername_Call
- func (_c *UserGetter_GetUsername_Call) RunAndReturn(run func(ctx context.Context) string) *UserGetter_GetUsername_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationGetter ¶
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 (_m *ApplicationGetter) EXPECT() *ApplicationGetter_Expecter
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 ¶
func (_e *ApplicationGetter_Expecter) Get(ns any, name any) *ApplicationGetter_Get_Call
Get is a helper method to define mock.On call
- ns string
- name string
type ApplicationGetter_Get_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 (_c *ApplicationGetter_Get_Call) Return(application *v1alpha1.Application, err error) *ApplicationGetter_Get_Call
func (*ApplicationGetter_Get_Call) Run ¶
func (_c *ApplicationGetter_Get_Call) Run(run func(ns string, name string)) *ApplicationGetter_Get_Call
func (*ApplicationGetter_Get_Call) RunAndReturn ¶
func (_c *ApplicationGetter_Get_Call) RunAndReturn(run func(ns string, name string) (*v1alpha1.Application, error)) *ApplicationGetter_Get_Call
type ExtensionMetricsRegistry ¶
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 (_m *ExtensionMetricsRegistry) EXPECT() *ExtensionMetricsRegistry_Expecter
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 ¶
func (_e *ExtensionMetricsRegistry_Expecter) IncExtensionRequestCounter(extension any, status any) *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
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 ¶
ExtensionMetricsRegistry_IncExtensionRequestCounter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncExtensionRequestCounter'
func (*ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) Run ¶
func (_c *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) Run(run func(extension string, status int)) *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
func (*ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) RunAndReturn ¶
func (_c *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call) RunAndReturn(run func(extension string, status int)) *ExtensionMetricsRegistry_IncExtensionRequestCounter_Call
type ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call ¶
ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveExtensionRequestDuration'
func (*ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) Run ¶
func (_c *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) Run(run func(extension string, duration time.Duration)) *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call
func (*ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) RunAndReturn ¶
func (_c *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call) RunAndReturn(run func(extension string, duration time.Duration)) *ExtensionMetricsRegistry_ObserveExtensionRequestDuration_Call
type ProjectGetter ¶
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 ¶
func (_e *ProjectGetter_Expecter) Get(name any) *ProjectGetter_Get_Call
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 ¶
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 (_c *ProjectGetter_GetClusters_Call) Return(clusters []*v1alpha1.Cluster, err error) *ProjectGetter_GetClusters_Call
func (*ProjectGetter_GetClusters_Call) Run ¶
func (_c *ProjectGetter_GetClusters_Call) Run(run func(ctx context.Context, project string)) *ProjectGetter_GetClusters_Call
func (*ProjectGetter_GetClusters_Call) RunAndReturn ¶
func (_c *ProjectGetter_GetClusters_Call) RunAndReturn(run func(ctx context.Context, project string) ([]*v1alpha1.Cluster, error)) *ProjectGetter_GetClusters_Call
type ProjectGetter_Get_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 (_c *ProjectGetter_Get_Call) Return(appProject *v1alpha1.AppProject, err error) *ProjectGetter_Get_Call
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 ¶
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 ¶
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 (_c *RbacEnforcer_EnforceErr_Call) Return(err error) *RbacEnforcer_EnforceErr_Call
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 ¶
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 (_m *SettingsGetter) EXPECT() *SettingsGetter_Expecter
type SettingsGetter_Expecter ¶
type SettingsGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*SettingsGetter_Expecter) Get ¶
func (_e *SettingsGetter_Expecter) Get() *SettingsGetter_Get_Call
Get is a helper method to define mock.On call
type SettingsGetter_Get_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 (_c *SettingsGetter_Get_Call) Return(settings1 *settings.Settings, err error) *SettingsGetter_Get_Call
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 ¶
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 ¶
func (_e *UserGetter_Expecter) GetGroups(ctx any) *UserGetter_GetGroups_Call
GetGroups is a helper method to define mock.On call
- ctx context.Context
func (*UserGetter_Expecter) GetUserId ¶
func (_e *UserGetter_Expecter) GetUserId(ctx any) *UserGetter_GetUserId_Call
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 ¶
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 (_c *UserGetter_GetGroups_Call) Return(strings []string) *UserGetter_GetGroups_Call
func (*UserGetter_GetGroups_Call) Run ¶
func (_c *UserGetter_GetGroups_Call) Run(run func(ctx context.Context)) *UserGetter_GetGroups_Call
func (*UserGetter_GetGroups_Call) RunAndReturn ¶
func (_c *UserGetter_GetGroups_Call) RunAndReturn(run func(ctx context.Context) []string) *UserGetter_GetGroups_Call
type UserGetter_GetUserId_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 (_c *UserGetter_GetUserId_Call) Return(s string) *UserGetter_GetUserId_Call
func (*UserGetter_GetUserId_Call) Run ¶
func (_c *UserGetter_GetUserId_Call) Run(run func(ctx context.Context)) *UserGetter_GetUserId_Call
func (*UserGetter_GetUserId_Call) RunAndReturn ¶
func (_c *UserGetter_GetUserId_Call) RunAndReturn(run func(ctx context.Context) string) *UserGetter_GetUserId_Call
type UserGetter_GetUsername_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 (_c *UserGetter_GetUsername_Call) Return(s string) *UserGetter_GetUsername_Call
func (*UserGetter_GetUsername_Call) Run ¶
func (_c *UserGetter_GetUsername_Call) Run(run func(ctx context.Context)) *UserGetter_GetUsername_Call
func (*UserGetter_GetUsername_Call) RunAndReturn ¶
func (_c *UserGetter_GetUsername_Call) RunAndReturn(run func(ctx context.Context) string) *UserGetter_GetUsername_Call