factories

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdapterKnative

func AdapterKnative(seed ...*knativev1alpha1.Adapter) *adapterKnative

func Application

func Application(seed ...*buildv1alpha1.Application) *application

func Condition

func Condition(seed ...apis.Condition) *condition

func ConfigMap

func ConfigMap(seed ...*corev1.ConfigMap) *configMap

func Container

func Container(seed ...*buildv1alpha1.Container) *container

func DeployerCore

func DeployerCore(seed ...*corev1alpha1.Deployer) *deployerCore

func DeployerKnative

func DeployerKnative(seed ...*knativev1alpha1.Deployer) *deployerKnative

func Deployment

func Deployment(seed ...*appsv1.Deployment) *deployment

func Function

func Function(seed ...*buildv1alpha1.Function) *function

func Gateway

func Gateway(seed ...*streamingv1alpha1.Gateway) *gateway

func InMemoryGateway

func InMemoryGateway(seed ...*streamingv1alpha1.InMemoryGateway) *inmemoryGateway

func Ingress

func Ingress(seed ...*networkingv1beta1.Ingress) *ingress

func KafkaGateway

func KafkaGateway(seed ...*streamingv1alpha1.KafkaGateway) *kafkaGateway

func KedaScaledObject

func KedaScaledObject(seed ...*kedav1alpha1.ScaledObject) *kedaScaledObject

func KnativeConfiguration

func KnativeConfiguration(seed ...*knativeservingv1.Configuration) *knativeConfiguration

func KnativeRoute

func KnativeRoute(seed ...*knativeservingv1.Route) *knativeRoute

func KnativeService

func KnativeService(seed ...*knativeservingv1.Service) *knativeService

func KpackClusterBuilder

func KpackClusterBuilder(seed ...*kpackbuildv1alpha1.ClusterBuilder) *kpackClusterBuilder

func KpackImage

func KpackImage(seed ...*kpackbuildv1alpha1.Image) *kpackImage

func Processor

func Processor(seed ...*streamingv1alpha1.Processor) *processor

func PulsarGateway

func PulsarGateway(seed ...*streamingv1alpha1.PulsarGateway) *pulsarGateway

func Secret

func Secret(seed ...*corev1.Secret) *secret

func Service

func Service(seed ...*corev1.Service) *service

func ServiceAccount

func ServiceAccount(seed ...*corev1.ServiceAccount) *serviceAccount

func Stream

func Stream(seed ...*streamingv1alpha1.Stream) *stream

Types

type ObjectMeta

type ObjectMeta interface {
	Create() metav1.ObjectMeta

	Namespace(namespace string) ObjectMeta
	Name(format string, a ...interface{}) ObjectMeta
	GenerateName(format string, a ...interface{}) ObjectMeta
	AddLabel(key, value string) ObjectMeta
	AddAnnotation(key, value string) ObjectMeta
	Generation(generation int64) ObjectMeta
	ControlledBy(owner testing.Factory, scheme *runtime.Scheme) ObjectMeta
	Created(sec int64) ObjectMeta
	Deleted(sec int64) ObjectMeta
	UID(uid string) ObjectMeta
}

type PodTemplateSpec

type PodTemplateSpec interface {
	Create() corev1.PodTemplateSpec

	AddLabel(key, value string) PodTemplateSpec
	AddAnnotation(key, value string) PodTemplateSpec
	ContainerNamed(name string, cb func(*corev1.Container)) PodTemplateSpec
	Volumes(volumes ...corev1.Volume) PodTemplateSpec
}

Jump to

Keyboard shortcuts

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