gitlab

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	KeySlackGitlabIconURL = "notification.slack.gitlab_icon_url"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Gitlab

type Gitlab struct {
}

func (*Gitlab) CommitURL

func (g *Gitlab) CommitURL(w *repository.Webhook) string

func (*Gitlab) CompareURL

func (g *Gitlab) CompareURL(w *repository.Webhook) string

func (*Gitlab) IconURL

func (g *Gitlab) IconURL() string

func (*Gitlab) IsPing

func (g *Gitlab) IsPing(r *http.Request, body []byte) bool

func (*Gitlab) Name

func (g *Gitlab) Name() string

func (*Gitlab) PusherURL

func (g *Gitlab) PusherURL(w *repository.Webhook) string

func (*Gitlab) RefURL

func (g *Gitlab) RefURL(w *repository.Webhook) string

func (*Gitlab) RepositoryURL

func (g *Gitlab) RepositoryURL(w *repository.Webhook) string

func (*Gitlab) RequestID

func (g *Gitlab) RequestID(r *http.Request) string

func (*Gitlab) Unmarshal

func (g *Gitlab) Unmarshal(r *http.Request, body []byte) (*repository.Webhook, error)

func (*Gitlab) Verify

func (g *Gitlab) Verify(r *http.Request, body []byte) error

func (*Gitlab) WebhookProvider

func (g *Gitlab) WebhookProvider() repository.WebhookProvider

type GitlabWebhook

type GitlabWebhook struct {
	After   string `json:"after"`
	Before  string `json:"before"`
	Ref     string `json:"ref"`
	Project struct {
		Name      string `json:"name"`
		Namespace string `json:"namespace"`
	} `json:"project"`
	UserUsername string `json:"user_username"`
}

Jump to

Keyboard shortcuts

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