Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStatusMismatch = errors.New("job status does not match configured trigger") ErrPostConditionNotMet = errors.New("post condition is not met") )
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
Error string `json:"error"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ClientOptions) *Client
type ClientOptions ¶
type Notification ¶
type Notification struct { Status string Branch string Tag string Event string BranchPattern string TagPattern string InvertMatch bool TemplateVar string TemplatePath string TemplateInline string TemplateName string }
func (*Notification) BuildMessageBody ¶
func (j *Notification) BuildMessageBody() (string, error)
func (*Notification) IsEventMatchingStatus ¶
func (j *Notification) IsEventMatchingStatus() bool
func (*Notification) IsPostConditionMet ¶
func (j *Notification) IsPostConditionMet() bool
Click to show internal directories.
Click to hide internal directories.