gitlab

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func IsValidScope

func IsValidScope(scope string) bool

func NewDownloadFileCapability

func NewDownloadFileCapability(httpClient *http.Client, glClientBuilder gitlabClientBuilder, baseUrl string) 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) GetOAuthEndpoint

func (g Gitlab) GetOAuthEndpoint() string

func (Gitlab) GetType

func (g Gitlab) GetType() api.ServiceProviderType

func (Gitlab) LookupToken

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

func (*Gitlab) OAuthScopesFor

func (g *Gitlab) OAuthScopesFor(permissions *api.Permissions) []string

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