resources

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Labels

func Labels(name string) map[string]string

Labels are the labels attached to all resources based on a CronJobSource.

func MakeEventType

func MakeEventType(src *v1alpha1.CronJobSource) *eventingv1alpha1.EventType

MakeEventType creates the in-memory representation of the EventType for the specified CronJobSource.

func MakeReceiveAdapter

func MakeReceiveAdapter(args *ReceiveAdapterArgs) *v1.Deployment

MakeReceiveAdapter generates (but does not insert into K8s) the Receive Adapter Deployment for Cron Job Sources.

func OldLabels added in v0.8.0

func OldLabels(name string) map[string]string

OldLabels are the pre-0.8 labels. TODO Delete after 0.8 is cut.

Types

type ReceiveAdapterArgs

type ReceiveAdapterArgs struct {
	Image   string
	Source  *v1alpha1.CronJobSource
	Labels  map[string]string
	SinkURI string
}

ReceiveAdapterArgs are the arguments needed to create a Cron Job Source Receive Adapter. Every field is required.

Jump to

Keyboard shortcuts

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