testing

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFactory

func MakeFactory(ctor Ctor, logger *zap.Logger) Factory

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

func NewCamelSource

func NewCamelSource(name, namespace string, generation int64, ncopt ...CamelSourceOption) *v1alpha1.CamelSource

NewCamelSource creates an CamelSource with CamelSourceOptions.

func NewIntegration

func NewIntegration(name, namespace string, src *v1alpha1.CamelSource, ncopt ...CamelkIntegrationOption) *v1.Integration

NewIntegration creates an CamelSource with CamelkIntegrationOption.

func WithCamelSourceDeleted

func WithCamelSourceDeleted(nc *v1alpha1.CamelSource)

func WithInitCamelSource

func WithInitCamelSource(nc *v1alpha1.CamelSource)

Types

type CamelSourceOption

type CamelSourceOption func(*v1alpha1.CamelSource)

CamelSourceOption enables further configuration of a CamelSource.

func WithCamelSourceDeployed

func WithCamelSourceDeployed() CamelSourceOption

func WithCamelSourceDeploying

func WithCamelSourceDeploying() CamelSourceOption

func WithCamelSourceIntegrationUpdated

func WithCamelSourceIntegrationUpdated() CamelSourceOption

func WithCamelSourceSink

func WithCamelSourceSink(uri string) CamelSourceOption

func WithCamelSourceSinkNotFound

func WithCamelSourceSinkNotFound() CamelSourceOption

func WithCamelSourceSpec

func WithCamelSourceSpec(spec v1alpha1.CamelSourceSpec) CamelSourceOption

type CamelkIntegrationOption

type CamelkIntegrationOption func(*v1.Integration)

CamelkIntegrationOption enables further configuration of a Integration.

func WithIntegrationStatus

func WithIntegrationStatus(status v1.IntegrationStatus) CamelkIntegrationOption

type Ctor

Ctor functions create a k8s controller with given params.

type Listers

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

func NewListers

func NewListers(objs []runtime.Object) Listers

func (*Listers) GetAddressableObjects

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

func (*Listers) GetAllObjects

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

func (*Listers) GetCamelSourcesLister

func (l *Listers) GetCamelSourcesLister() sourceslisters.CamelSourceLister

func (*Listers) GetCamelkIntegrationLister

func (l *Listers) GetCamelkIntegrationLister() camellisters.IntegrationLister

func (*Listers) GetCamelkObjects

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

func (*Listers) GetSourceObjects

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

Jump to

Keyboard shortcuts

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