job

package
v0.0.0-...-b4828b3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	trigger.Configuration
	Event cron.Event
}

func NewConfiguration

func NewConfiguration(id string,
	triggerConfiguration *functionconfig.Trigger,
	runtimeConfiguration *runtime.Configuration) (*Configuration, error)

type Event

type Event struct {
	Body       []byte
	Attributes map[string]interface{}
	// contains filtered or unexported fields
}

Event contains the data for a job event

func (*Event) GetBody

func (e *Event) GetBody() []byte

GetBody returns the body of the job event

func (*Event) GetBodyString

func (e *Event) GetBodyString() string

GetBodyString returns the body of the job event as a string

func (*Event) GetContentType

func (e *Event) GetContentType() string

GetContentType returns an empty string since job events don't have a content type

func (*Event) GetField

func (e *Event) GetField(key string) (interface{}, error)

GetField returns a specific event attribute

func (*Event) GetFieldString

func (e *Event) GetFieldString(key string) (string, error)

GetFieldString returns a specific event attribute as a string

func (*Event) GetFields

func (e *Event) GetFields() map[string]interface{}

GetFields returns the event attributes

func (*Event) GetHeaders

func (e *Event) GetHeaders() map[string]interface{}

GetHeaders returns nil since job events don't have headers

func (*Event) GetID

func (e *Event) GetID() string

GetID returns an empty string since job events don't have an ID

func (*Event) GetMethod

func (e *Event) GetMethod() string

GetMethod returns an empty string since job events don't have a method

func (*Event) GetPath

func (e *Event) GetPath() string

GetPath returns an empty string since job events don't have a path

func (*Event) GetShardID

func (e *Event) GetShardID() int

GetShardID returns 0 since job events don't have a shard ID

func (*Event) GetTimestamp

func (e *Event) GetTimestamp() time.Time

GetTimestamp returns the event timestamp

func (*Event) GetTriggerInfo

func (e *Event) GetTriggerInfo() map[string]interface{}

GetTriggerInfo returns a map with trigger information

func (*Event) GetType

func (e *Event) GetType() string

GetType returns "job" as the type

func (*Event) GetTypeVersion

func (e *Event) GetTypeVersion() string

GetTypeVersion returns an empty string since job events don't have a type version

func (*Event) GetURL

func (e *Event) GetURL() string

GetURL returns an empty string since job events don't have a URL

func (*Event) GetVersion

func (e *Event) GetVersion() int

GetVersion returns 0 since job events don't have a version

Jump to

Keyboard shortcuts

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