cron

package
v0.0.0-...-932eec2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentType    = "bindings.cron"
	ComponentVersion = "v1"
)

Variables

This section is empty.

Functions

func NewCronEventSource

func NewCronEventSource(log logr.Logger, spec *ofevent.CronSpec) event.OpenFunctionEventSource

Types

type EventSource

type EventSource struct {
	Spec     *ofevent.CronSpec
	Metadata map[string]interface{}
	// contains filtered or unexported fields
}

func (*EventSource) GenComponent

func (es *EventSource) GenComponent(namespace string, name string) (*componentsv1alpha1.Component, error)

func (*EventSource) GenScaleOptions

func (es *EventSource) GenScaleOptions() (*ofcore.KedaScaledObject, *kedav1alpha1.ScaleTriggers)

func (*EventSource) GetMetadata

func (es *EventSource) GetMetadata() map[string]interface{}

func (*EventSource) SetMetadata

func (es *EventSource) SetMetadata(key string, value interface{})

Jump to

Keyboard shortcuts

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