testing

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFactory

func MakeFactory(ctor Ctor) rt.Factory

MakeFactory creates a reconciler factory with fake clients and controller created by the given Ctor.

func NewScheme

func NewScheme() *runtime.Scheme

NewScheme Returns a new scheme

func ToUnstructured

func ToUnstructured(t *testing.T, sch *runtime.Scheme, objs []runtime.Object) (us []runtime.Object)

ToUnstructured takes a list of k8s resources and converts them to Unstructured objects. We must pass objects as Unstructured to the dynamic client fake, or it won't handle them properly.

Types

type Ctor

Ctor functions create a k8s controller with given params.

type Listers

type Listers struct {
	// contains filtered or unexported fields
}

Listers Testing listers

func NewListers

func NewListers(scheme *runtime.Scheme, objs []runtime.Object) Listers

NewListers Returns a new listers object

func (*Listers) GetEventActivationLister

GetEventActivationLister returns EventActivation lister

func (*Listers) GetEventBusObjects

func (l *Listers) GetEventBusObjects() []runtime.Object

GetEventBusObjects returns EventBus objects

func (*Listers) GetEventingObjects

func (l *Listers) GetEventingObjects() []runtime.Object

GetEventingObjects returns knative Eventing objects

func (*Listers) GetKnativeSubscriptionLister

func (l *Listers) GetKnativeSubscriptionLister() subscriptionlistersv1alpha1.SubscriptionLister

GetKnativeSubscriptionLister returns knative subscriptions lister

func (*Listers) GetSubscriptionLister

func (l *Listers) GetSubscriptionLister() eventinglistersv1alpha1.SubscriptionLister

GetSubscriptionLister returns Kyma subscriptions lister

func (*Listers) IndexerFor

func (l *Listers) IndexerFor(obj runtime.Object) cache.Indexer

IndexerFor returns the indexer for the given object.

Jump to

Keyboard shortcuts

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