log

package
v1.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogTrigger

type LogTrigger struct {
	Sensor      *v1alpha1.Sensor
	Trigger     *v1alpha1.Trigger
	Logger      *zap.SugaredLogger
	LastLogTime time.Time
}

func NewLogTrigger

func NewLogTrigger(sensor *v1alpha1.Sensor, trigger *v1alpha1.Trigger, logger *zap.SugaredLogger) (*LogTrigger, error)

func (*LogTrigger) ApplyPolicy

func (t *LogTrigger) ApplyPolicy(context.Context, interface{}) error

func (*LogTrigger) ApplyResourceParameters

func (t *LogTrigger) ApplyResourceParameters(_ map[string]*v1alpha1.Event, resource interface{}) (interface{}, error)

func (*LogTrigger) Execute

func (t *LogTrigger) Execute(ctx context.Context, events map[string]*v1alpha1.Event, resource interface{}) (interface{}, error)

func (*LogTrigger) FetchResource

func (t *LogTrigger) FetchResource(ctx context.Context) (interface{}, error)

func (*LogTrigger) GetTriggerType added in v1.3.0

func (t *LogTrigger) GetTriggerType() apicommon.TriggerType

GetTriggerType returns the type of the trigger

Jump to

Keyboard shortcuts

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