gitlab

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReporterName = "gitlab"

	LabelNameLogs    = "Samsahai Deployment - Logs"
	LabelNameHistory = "Samsahai Deployment - History"
)

Variables

This section is empty.

Functions

func New

func New(opts ...NewOption) internal.Reporter

New creates a new gitlab reporter

func NewGitlabClient

func NewGitlabClient(baseURL, token string) gitlab.Gitlab

NewGitlabClient returns a Gitlab client for publishing commit status to Gitlab

Types

type NewOption

type NewOption func(*reporter)

NewOption allows specifying various configuration

func WithGitlabClient

func WithGitlabClient(gl gitlab.Gitlab) NewOption

WithGitlabClient specifies a gitlab client to override when creating gitlab reporter

func WithGitlabToken

func WithGitlabToken(token string) NewOption

WithGitlabToken specifies a Gitlab access token to override when creating gitlab reporter

func WithGitlabURL

func WithGitlabURL(url string) NewOption

WithGitlabURL specifies a Gitlab url to override when creating gitlab reporter

Jump to

Keyboard shortcuts

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