Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEvent ¶
func CreateEvent(taskCtx types.TaskContext, taskStatus types.TaskStatus, info *TaskEventInfo) *event.TaskExecutionEvent
Types ¶
type TaskEventInfo ¶
type TaskEventInfo struct { // log information for the task execution Logs []*core.TaskLog // Set this value to the intended time when the status occurred at. If not provided, will be defaulted to the current // time at the time of publishing the event. OccurredAt *time.Time // Custom Event information that the plugin would like to expose to the front-end CustomInfo *structpb.Struct }
Additional info that should be sent to the front end. The Information is sent to the front-end if it meets certain criterion, for example currently, it is sent only if an event was not already sent for
Click to show internal directories.
Click to hide internal directories.