gitlab

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL