Documentation ¶
Index ¶
- Variables
- func IsValidScope(scope string) bool
- func NewDownloadFileCapability(httpClient *http.Client, glClientBuilder gitlabClientBuilder, baseUrl string, ...) downloadFileCapability
- type Gitlab
- func (g Gitlab) CheckRepositoryAccess(ctx context.Context, cl client.Client, accessCheck *api.SPIAccessCheck) (*api.SPIAccessCheckStatus, error)
- func (g Gitlab) GetBaseUrl() string
- func (g *Gitlab) GetDownloadFileCapability() serviceprovider.DownloadFileCapability
- func (g *Gitlab) GetOAuthCapability() serviceprovider.OAuthCapability
- func (g *Gitlab) GetRefreshTokenCapability() serviceprovider.RefreshTokenCapability
- func (g Gitlab) GetType() config.ServiceProviderType
- func (g Gitlab) LookupTokens(ctx context.Context, cl client.Client, binding *api.SPIAccessTokenBinding) ([]api.SPIAccessToken, error)
- func (g Gitlab) MapToken(_ context.Context, _ *api.SPIAccessTokenBinding, token *api.SPIAccessToken, ...) (serviceprovider.AccessTokenMapper, error)
- func (g Gitlab) PersistMetadata(ctx context.Context, _ client.Client, token *api.SPIAccessToken) error
- func (g Gitlab) Validate(_ context.Context, validated serviceprovider.Validated) (serviceprovider.ValidationResult, error)
- type Scope
- type TokenState
Constants ¶
This section is empty.
Variables ¶
View Source
var Initializer = serviceprovider.Initializer{ Probe: gitlabProbe{}, Constructor: serviceprovider.ConstructorFunc(newGitlab), }
Functions ¶
func IsValidScope ¶
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 (*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) MapToken ¶
func (g Gitlab) MapToken(_ context.Context, _ *api.SPIAccessTokenBinding, token *api.SPIAccessToken, tokenData *api.Token) (serviceprovider.AccessTokenMapper, error)
func (Gitlab) PersistMetadata ¶
func (Gitlab) Validate ¶
func (g Gitlab) Validate(_ context.Context, validated serviceprovider.Validated) (serviceprovider.ValidationResult, error)
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" )
type TokenState ¶
type TokenState struct { }
Click to show internal directories.
Click to hide internal directories.