mocks

package
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 3 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 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