Documentation ¶
Index ¶
- func EvalProjectTriggers(e *event.EventLogEntry, processor projectProcessor) ([]model.Version, error)
- func JIRATaskPayload(subID, project, uiUrl, eventID, testNames string, t *task.Task) (*message.JiraIssue, error)
- func NotificationsFromEvent(e *event.EventLogEntry) ([]notification.Notification, error)
- func TriggerDownstreamVersion(args ProcessorArgs) (*model.Version, error)
- func ValidateTrigger(resourceType, triggerName string) bool
- type ProcessorArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalProjectTriggers ¶
func EvalProjectTriggers(e *event.EventLogEntry, processor projectProcessor) ([]model.Version, error)
EvalProjectTriggers takes an event log entry and a processor (either the mock or TriggerDownstreamVersion) and checks if any downstream builds should be triggered, creating them if they should
func JIRATaskPayload ¶
func NotificationsFromEvent ¶
func NotificationsFromEvent(e *event.EventLogEntry) ([]notification.Notification, error)
It is possible for this function to return notifications and errors at the same time. If the notifications array is not nil, they are valid and should be processed as normal.
func TriggerDownstreamVersion ¶
func TriggerDownstreamVersion(args ProcessorArgs) (*model.Version, error)
TriggerDownstreamVersion assumes that you definitely want to create a downstream version and will go through the process of version creation given a triggering version
func ValidateTrigger ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.