testing

package
v0.0.0-...-cb3e436 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFactory

func MakeFactory(ctor Ctor) Factory

MakeFactory creates a reconciler factory with fake clients and controller created by `ctor`.

func NewCronJob

func NewCronJob(s *v1alpha1.CronJobSource, options ...CronJobOption) *batchv1beta1.CronJob

func NewCronJobSource

func NewCronJobSource(name string, options ...CronJobSourceOption) *v1alpha1.CronJobSource

func NewJob

func NewJob(js *v1alpha1.JobSource, options ...JobOption) *batchv1.Job

func NewJobSource

func NewJobSource(name string, options ...JobSourceOption) *v1alpha1.JobSource

func NewScheme

func NewScheme() *runtime.Scheme

func NewService

func NewService(s *v1alpha1.ServiceSource, options ...ServiceOption) *servingv1beta1.Service

func NewServiceSource

func NewServiceSource(name string, options ...ServiceSourceOption) *v1alpha1.ServiceSource

func WithFakeCronJobSpec

func WithFakeCronJobSpec(s *v1alpha1.CronJobSource)

func WithFakeJobContainer

func WithFakeJobContainer(js *v1alpha1.JobSource)

func WithMinServiceSpec

func WithMinServiceSpec(s *v1alpha1.ServiceSource)

Types

type CronJobOption

type CronJobOption func(*batchv1beta1.CronJob)

type CronJobSourceOption

type CronJobSourceOption func(*v1alpha1.CronJobSource)

type Ctor

Ctor functions create a k8s controller with given params.

type JobOption

type JobOption func(*batchv1.Job)

type JobSourceOption

type JobSourceOption func(*v1alpha1.JobSource)

type Listers

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

func NewListers

func NewListers(objs []runtime.Object) Listers

func (*Listers) GetAllObjects

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

func (*Listers) GetConfigMapLister

func (l *Listers) GetConfigMapLister() corev1listers.ConfigMapLister

func (*Listers) GetCronJobSourceLister

func (l *Listers) GetCronJobSourceLister() sourceslisters.CronJobSourceLister

func (*Listers) GetCustomResourceDefinitionLister

func (l *Listers) GetCustomResourceDefinitionLister() apiextensionsv1beta1listers.CustomResourceDefinitionLister

func (*Listers) GetDeploymentLister

func (l *Listers) GetDeploymentLister() appsv1listers.DeploymentLister

func (*Listers) GetEndpointsLister

func (l *Listers) GetEndpointsLister() corev1listers.EndpointsLister

func (*Listers) GetEventingObjects

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

func (*Listers) GetJobSourceLister

func (l *Listers) GetJobSourceLister() sourceslisters.JobSourceLister

func (*Listers) GetK8sServiceLister

func (l *Listers) GetK8sServiceLister() corev1listers.ServiceLister

func (*Listers) GetKubeObjects

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

func (*Listers) GetNamespaceLister

func (l *Listers) GetNamespaceLister() corev1listers.NamespaceLister

func (*Listers) GetObjectsFrom

func (l *Listers) GetObjectsFrom(getters ...func() []runtime.Object) []runtime.Object

func (*Listers) GetRoleBindingLister

func (l *Listers) GetRoleBindingLister() rbacv1listers.RoleBindingLister

func (*Listers) GetServiceAccountLister

func (l *Listers) GetServiceAccountLister() corev1listers.ServiceAccountLister

func (*Listers) GetServiceLister

func (l *Listers) GetServiceLister() corev1listers.ServiceLister

func (*Listers) GetServiceSourceLister

func (l *Listers) GetServiceSourceLister() sourceslisters.ServiceSourceLister

func (*Listers) GetServingObjects

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

func (*Listers) GetSharedObjects

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

func (*Listers) GetSinkObjects

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

func (*Listers) GetSourcesObjects

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

type ServiceOption

type ServiceOption func(*servingv1beta1.Service)

type ServiceSourceOption

type ServiceSourceOption func(*v1alpha1.ServiceSource)

Jump to

Keyboard shortcuts

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