Documentation
¶
Index ¶
- func IsEmpty(i interface{}) bool
- func NewGotify(c *GotifyConfig) core.Middleware
- func NewMail(c *MailConfig) core.Middleware
- func NewOverlap(c *OverlapConfig) core.Middleware
- func NewSave(c *SaveConfig) core.Middleware
- func NewSlack(c *SlackConfig) core.Middleware
- func NewTeams(c *TeamsConfig) core.Middleware
- type Gotify
- type GotifyConfig
- type Mail
- type MailConfig
- type Overlap
- type OverlapConfig
- type Save
- type SaveConfig
- type Slack
- type SlackConfig
- type Teams
- type TeamsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGotify ¶
func NewGotify(c *GotifyConfig) core.Middleware
NewGotify returns a Gotify middleware if the given configuration is not empty
func NewMail ¶
func NewMail(c *MailConfig) core.Middleware
NewMail returns a Mail middleware if the given configuration is not empty
func NewOverlap ¶
func NewOverlap(c *OverlapConfig) core.Middleware
NewOverlap returns a Overlap middleware if the given configuration is not empty
func NewSave ¶
func NewSave(c *SaveConfig) core.Middleware
NewSave returns a Save middleware if the given configuration is not empty
func NewSlack ¶
func NewSlack(c *SlackConfig) core.Middleware
NewSlack returns a Slack middleware if the given configuration is not empty
func NewTeams ¶ added in v1.0.3
func NewTeams(c *TeamsConfig) core.Middleware
Types ¶
type Gotify ¶
type Gotify struct {
GotifyConfig
}
func (*Gotify) ContinueOnStop ¶
ContinueOnStop return allways true, we want always report the final status
type GotifyConfig ¶
type Mail ¶
type Mail struct {
MailConfig
}
Mail middleware delivers a email just after an execution finishes
func (*Mail) ContinueOnStop ¶
ContinueOnStop return allways true, we want always report the final status
type MailConfig ¶
type MailConfig struct {
SMTPHost string `gcfg:"smtp-host" mapstructure:"smtp-host"`
SMTPPort int `gcfg:"smtp-port" mapstructure:"smtp-port"`
SMTPUser string `gcfg:"smtp-user" mapstructure:"smtp-user"`
SMTPPassword string `gcfg:"smtp-password" mapstructure:"smtp-password"`
EmailTo string `gcfg:"email-to" mapstructure:"email-to"`
EmailFrom string `gcfg:"email-from" mapstructure:"email-from"`
MailOnlyOnError bool `gcfg:"mail-only-on-error" mapstructure:"mail-only-on-error"`
InsecureSkipVerify bool `gcfg:"insecure-skip-verify" mapstructure:"insecure-skip-verify"`
}
MailConfig configuration for the Mail middleware
type Overlap ¶
type Overlap struct {
OverlapConfig
}
Overlap when this middleware is enabled avoid to overlap executions from a specific job
func (*Overlap) ContinueOnStop ¶
ContinueOnStop Overlap is only called if the process is still running
type OverlapConfig ¶
type OverlapConfig struct {
NoOverlap bool `gcfg:"no-overlap" mapstructure:"no-overlap"`
}
OverlapConfig configuration for the Overlap middleware
type Save ¶
type Save struct {
SaveConfig
}
Save the save middleware saves to disk a dump of the stdout and stderr after every execution of the process
func (*Save) ContinueOnStop ¶
ContinueOnStop return allways true, we want always report the final status
type SaveConfig ¶
type SaveConfig struct {
SaveFolder string `gcfg:"save-folder" mapstructure:"save-folder"`
SaveOnlyOnError bool `gcfg:"save-only-on-error" mapstructure:"save-only-on-error"`
}
SaveConfig configuration for the Save middleware
type Slack ¶
type Slack struct {
SlackConfig
}
Slack middleware calls to a Slack input-hook after every execution of a job
func (*Slack) ContinueOnStop ¶
ContinueOnStop return allways true, we want alloways report the final status
type SlackConfig ¶
type SlackConfig struct {
SlackWebhook string `gcfg:"slack-webhook" mapstructure:"slack-webhook"`
SlackOnlyOnError bool `gcfg:"slack-only-on-error" mapstructure:"slack-only-on-error"`
}
SlackConfig configuration for the Slack middleware
type Teams ¶ added in v1.0.3
type Teams struct {
TeamsConfig
}
Teams middleware calls to a Teams input-hook after every execution of a job
func (*Teams) ContinueOnStop ¶ added in v1.0.3
ContinueOnStop returns always true
type TeamsConfig ¶ added in v1.0.3
type TeamsConfig struct {
TeamsWebhook string `gcfg:"teams-webhook" mapstructure:"teams-webhook"`
TeamsOnlyOnError bool `gcfg:"teams-only-on-error" mapstructure:"teams-only-on-error"`
}
TeamsConfig configuration for the Teams middleware