gitlab

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestRunnerName = "gitlab"

	ParamEnvType     = "s2hEnvType"
	ParamNamespace   = "s2hNamespace"
	ParamVersion     = "s2hVersion"
	ParamTeam        = "s2hTeam"
	ParamGitCommit   = "s2hGitCommit"
	ParamCompName    = "s2hComponentName"
	ParamCompVersion = "s2hComponentVersion"
	ParamQueueType   = "s2hQueueType"
)

Variables

This section is empty.

Functions

func New

func New(client client.Client, baseURL string, opts ...NewOption) internal.StagingTestRunner

New creates a new gitlab test runner

Types

type NewOption added in v1.11.4

type NewOption func(*testRunner)

NewOption allows specifying various configuration

func WithGitlabToken added in v1.11.4

func WithGitlabToken(token string) NewOption

WithGitlabToken specifies a gitlab private token to override when creating Gitlab test runner This will be used to get test result from the pipeline

type ResultResponse

type ResultResponse struct {
	StartedAt  string `json:"started_at"`
	FinishedAt string `json:"finished_at"`
	Status     string `json:"status"`
}

type TriggerResponse

type TriggerResponse struct {
	ID     int    `json:"id"`
	WebURL string `json:"web_url"`
}

Jump to

Keyboard shortcuts

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