test

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema

func GetSchema() *runtime.Scheme

GetSchema gets the needed schema for fake tests

func NewFakeClient

func NewFakeClient(initObjs ...runtime.Object) client.Client

NewFakeClient will create a new fake client with all needed schemas

func NewFakeDiscoveryClient

func NewFakeDiscoveryClient(isOpenShift bool) discovery.DiscoveryInterface

NewFakeDiscoveryClient creates a fake discovery client

func NewManager

func NewManager() manager.Manager

NewManager ...

Types

type MockController

type MockController interface {
	controller.Controller
	// GetWatchedSources gets all the sources added to the Mock
	GetWatchedSources() []source.Source
}

MockController ...

func NewController

func NewController() MockController

NewController ...

Jump to

Keyboard shortcuts

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