gitlab

package
v0.2023.21 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Initializer = serviceprovider.Initializer{
	Probe:       gitlabProbe{},
	Constructor: serviceprovider.ConstructorFunc(newGitlab),
}

Functions

func IsValidScope

func IsValidScope(scope string) bool

func NewDownloadFileCapability

func NewDownloadFileCapability(httpClient *http.Client, glClientBuilder gitlabClientBuilder, baseUrl string, repoMatcher gitlabRepoUrlMatcher) downloadFileCapability

Types

type Gitlab

type Gitlab struct {
	Configuration *opconfig.OperatorConfiguration
	// contains filtered or unexported fields
}

func (Gitlab) CheckRepositoryAccess

func (g Gitlab) CheckRepositoryAccess(ctx context.Context, cl client.Client, accessCheck *api.SPIAccessCheck) (*api.SPIAccessCheckStatus, error)

func (Gitlab) GetBaseUrl

func (g Gitlab) GetBaseUrl() string

func (*Gitlab) GetDownloadFileCapability

func (g *Gitlab) GetDownloadFileCapability() serviceprovider.DownloadFileCapability

func (*Gitlab) GetOAuthCapability added in v0.2023.21

func (g *Gitlab) GetOAuthCapability() serviceprovider.OAuthCapability

func (*Gitlab) GetRefreshTokenCapability added in v0.2023.21

func (g *Gitlab) GetRefreshTokenCapability() serviceprovider.RefreshTokenCapability

func (Gitlab) GetType

func (g Gitlab) GetType() config.ServiceProviderType

func (Gitlab) LookupTokens added in v0.2023.21

func (g Gitlab) LookupTokens(ctx context.Context, cl client.Client, binding *api.SPIAccessTokenBinding) ([]api.SPIAccessToken, error)

func (Gitlab) PersistMetadata

func (g Gitlab) PersistMetadata(ctx context.Context, _ client.Client, token *api.SPIAccessToken) error

func (Gitlab) Validate

type Scope

type Scope string
const (
	ScopeApi             Scope = "api"
	ScopeReadApi         Scope = "read_api"
	ScopeReadUser        Scope = "read_user"
	ScopeReadRepository  Scope = "read_repository"
	ScopeWriteRepository Scope = "write_repository"
	ScopeReadRegistry    Scope = "read_registry"
	ScopeWriteRegistry   Scope = "write_registry"
	ScopeSudo            Scope = "sudo" // less understood and less relevant scopes begin
	ScopeOpenid          Scope = "openid"
	ScopeProfile         Scope = "profile"
	ScopeEmail           Scope = "email"
)

func (Scope) Implies

func (s Scope) Implies(other Scope) bool

type TokenState

type TokenState struct {
}

Jump to

Keyboard shortcuts

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