gitlab

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLabProvider

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

GitLabProvider implements GitLab OAuth, PAT validation, and project authorization.

func NewGitLabProvider

func NewGitLabProvider(ctx context.Context, cfg auth.ProviderConfig) (*GitLabProvider, error)

NewGitLabProvider creates a GitLab.com or self-managed auth provider.

func (*GitLabProvider) DisplayName

func (p *GitLabProvider) DisplayName() string

func (*GitLabProvider) GetUserRepos

func (p *GitLabProvider) GetUserRepos(ctx context.Context, client *http.Client) (map[string]bool, error)

func (*GitLabProvider) HandleCallback

func (p *GitLabProvider) HandleCallback(ctx context.Context, code, verifier string) (*auth.AuthenticatedUser, error)

func (*GitLabProvider) IconURL

func (p *GitLabProvider) IconURL() string

func (*GitLabProvider) IsUserRepo

func (p *GitLabProvider) IsUserRepo(ctx context.Context, client *http.Client, fullName string) (bool, error)

func (*GitLabProvider) LoginURL

func (p *GitLabProvider) LoginURL(state, verifier string) string

func (*GitLabProvider) Name

func (p *GitLabProvider) Name() string

func (*GitLabProvider) RefreshToken

func (p *GitLabProvider) RefreshToken(ctx context.Context, refreshToken string) (*auth.AuthenticatedUser, error)

func (*GitLabProvider) Type

func (p *GitLabProvider) Type() string

func (*GitLabProvider) ValidateToken

func (p *GitLabProvider) ValidateToken(ctx context.Context, token string) (*auth.AuthenticatedUser, error)

Jump to

Keyboard shortcuts

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