Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gitlab ¶
type Gitlab struct {
// contains filtered or unexported fields
}
Gitlab holds configured Gitlab client and provides API for creating templated issue from the Webhook.
func New ¶
func New(logger log.FieldLogger, url string, token string, projectID int, issueTemplate *template.Template, issueLabels *[]string, dynamicIssueLabels *[]string, groupInterval *time.Duration) (*Gitlab, error)
New creates new Gitlab instance configured to work with specified gitlab instance, project and with given authentication.
func (*Gitlab) CreateIssue ¶
func (g *Gitlab) CreateIssue(msg *alertmanager.Webhook) error
CreateIssue from the Webhook in Gitlab
Click to show internal directories.
Click to hide internal directories.