gitlab

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gitlab contains Gitlab specific [token.Provider]s.

Index

Constants

View Source
const (
	TokenTypeJob = "job"
	TokenTypePAT = "pat"
)

Contains the different types of tokens that can be retrieved.

Variables

View Source
var Providers = []shared.Provider{
	envProvider(),
	&GlabProvider{},
}

Providers is a list of providers that can be used to retrieve a token for Gitlab.

Functions

This section is empty.

Types

type GlabProvider

type GlabProvider struct{}

GlabProvider implements the [token.Provider] interface using the Gitlab CLI (glab) to retrieve a token.

func (*GlabProvider) Token

func (p *GlabProvider) Token() (*shared.Token, error)

Token returns a valid token or an error if no token is found.

Jump to

Keyboard shortcuts

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