Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFileNotExist = errors.New("the file does not exist") ErrFileRead = errors.New("could not read the file") ErrInvalidStatus = errors.New("the status provided is invalid") ErrTemplateEmpty = errors.New("the environment variable provided is empty") ErrTemplateNotExist = errors.New("the template does not exist") )
Functions ¶
func DetermineTemplate ¶
func DetermineTemplate(templateVar, templatePath, templateInline, templateName, jobStatus string) (string, error)
DetermineTemplate returns the template to use for the notification. The order of precedence is templateVar, templatePath, templateInline, templateName. If none of these are provided the default template for the job status is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.