Documentation ¶
Index ¶
- type LogTrigger
- func (t *LogTrigger) ApplyPolicy(context.Context, interface{}) error
- func (t *LogTrigger) ApplyResourceParameters(_ map[string]*v1alpha1.Event, resource interface{}) (interface{}, error)
- func (t *LogTrigger) Execute(ctx context.Context, events map[string]*v1alpha1.Event, resource interface{}) (interface{}, error)
- func (t *LogTrigger) FetchResource(ctx context.Context) (interface{}, error)
- func (t *LogTrigger) GetTriggerType() apicommon.TriggerType
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) 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
Click to show internal directories.
Click to hide internal directories.