mocks

package
v2.12.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 4 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 mockConstructorTestingTNewApplicationGetter) *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.

func (*ApplicationGetter) Get

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

Get provides a mock function with given fields: ns, name

type ExtensionMetricsRegistry added in v2.11.0

type ExtensionMetricsRegistry struct {
	mock.Mock
}

ExtensionMetricsRegistry is an autogenerated mock type for the ExtensionMetricsRegistry type

func NewExtensionMetricsRegistry added in v2.11.0

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) IncExtensionRequestCounter added in v2.11.0

func (_m *ExtensionMetricsRegistry) IncExtensionRequestCounter(_a0 string, status int)

IncExtensionRequestCounter provides a mock function with given fields: _a0, status

func (*ExtensionMetricsRegistry) ObserveExtensionRequestDuration added in v2.11.0

func (_m *ExtensionMetricsRegistry) ObserveExtensionRequestDuration(_a0 string, duration time.Duration)

ObserveExtensionRequestDuration provides a mock function with given fields: _a0, duration

type ProjectGetter added in v2.7.0

type ProjectGetter struct {
	mock.Mock
}

ProjectGetter is an autogenerated mock type for the ProjectGetter type

func NewProjectGetter added in v2.7.0

func NewProjectGetter(t mockConstructorTestingTNewProjectGetter) *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.

func (*ProjectGetter) Get added in v2.7.0

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

Get provides a mock function with given fields: name

func (*ProjectGetter) GetClusters added in v2.7.0

func (_m *ProjectGetter) GetClusters(project string) ([]*v1alpha1.Cluster, error)

GetClusters provides a mock function with given fields: project

type RbacEnforcer added in v2.7.0

type RbacEnforcer struct {
	mock.Mock
}

RbacEnforcer is an autogenerated mock type for the RbacEnforcer type

func NewRbacEnforcer added in v2.7.0

func NewRbacEnforcer(t mockConstructorTestingTNewRbacEnforcer) *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.

func (*RbacEnforcer) EnforceErr added in v2.7.0

func (_m *RbacEnforcer) EnforceErr(rvals ...interface{}) error

EnforceErr provides a mock function with given fields: rvals

type SettingsGetter

type SettingsGetter struct {
	mock.Mock
}

SettingsGetter is an autogenerated mock type for the SettingsGetter type

func NewSettingsGetter

func NewSettingsGetter(t mockConstructorTestingTNewSettingsGetter) *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.

func (*SettingsGetter) Get

Get provides a mock function with given fields:

Jump to

Keyboard shortcuts

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