Documentation ¶
Index ¶
- func MakeFactory(ctor Ctor) rt.Factory
- func NewScheme() *runtime.Scheme
- func ToUnstructured(t *testing.T, sch *runtime.Scheme, objs []runtime.Object) (us []runtime.Object)
- type Ctor
- type Listers
- func (l *Listers) GetEventActivationLister() applicationconnectorlistersv1alpha1.EventActivationLister
- func (l *Listers) GetEventBusObjects() []runtime.Object
- func (l *Listers) GetEventingObjects() []runtime.Object
- func (l *Listers) GetKnativeSubscriptionLister() subscriptionlistersv1alpha1.SubscriptionLister
- func (l *Listers) GetSubscriptionLister() eventinglistersv1alpha1.SubscriptionLister
- func (l *Listers) IndexerFor(obj runtime.Object) cache.Indexer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFactory ¶
MakeFactory creates a reconciler factory with fake clients and controller created by the given Ctor.
func ToUnstructured ¶
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 ¶
type Ctor func(context.Context, *Listers) controller.Reconciler
Ctor functions create a k8s controller with given params.
type Listers ¶
type Listers struct {
// contains filtered or unexported fields
}
Listers Testing listers
func NewListers ¶
NewListers Returns a new listers object
func (*Listers) GetEventActivationLister ¶
func (l *Listers) GetEventActivationLister() applicationconnectorlistersv1alpha1.EventActivationLister
GetEventActivationLister returns EventActivation lister
func (*Listers) GetEventBusObjects ¶
GetEventBusObjects returns EventBus objects
func (*Listers) GetEventingObjects ¶
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