gitlabci

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Backend = "gitlabci"

Backend name

View Source
const DefaultTimeout = time.Minute

DefaultTimeout for sub requests

View Source
const DefaultUsername = "gitlab-ci-token"

DefaultUsername to use when talking to gitlab

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabCI

type GitlabCI struct {
	// contains filtered or unexported fields
}

GitlabCI backend provides authentication against gitlab paths, primarily to make it easier to dynamically authenticate the gitlab-ci against gitlab permitting testing access to otherwise private resources without storing credentials in gitlab or gitlab-ci.yml

Authenticating against this backend should be done with the project path as the username and the token as the password.

Example: docker login docker.example.com -u "$CI_PROJECT_PATH" -p "$CI_BUILD_TOKEN"

func (GitlabCI) Authenticate

func (h GitlabCI) Authenticate(r *http.Request) (bool, error)

Authenticate fulfils the backend interface

Jump to

Keyboard shortcuts

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