mocks

package
v2.0.0-...-5e8ce1c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 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

type ProjectGetter struct {
	mock.Mock
}

ProjectGetter is an autogenerated mock type for the ProjectGetter type

func NewProjectGetter

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

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

Get provides a mock function with given fields: name

func (*ProjectGetter) GetClusters

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

GetClusters provides a mock function with given fields: project

type RbacEnforcer

type RbacEnforcer struct {
	mock.Mock
}

RbacEnforcer is an autogenerated mock type for the RbacEnforcer type

func NewRbacEnforcer

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

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