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: 0

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