hostcredentials

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Initializer = serviceprovider.Initializer{
	Constructor: serviceprovider.ConstructorFunc(newHostCredentialsProvider),
}

Functions

This section is empty.

Types

type HostCredentialsProvider

type HostCredentialsProvider struct {
	Configuration config.Configuration
	// contains filtered or unexported fields
}

HostCredentialsProvider is a unified provider implementation for any URL-based tokens and only supports manual upload of token data. Matching is done only by URL of the provider, so it is possible to have only one token for particular URL in the given namespace.

func (*HostCredentialsProvider) CheckRepositoryAccess

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

func (*HostCredentialsProvider) GetBaseUrl

func (g *HostCredentialsProvider) GetBaseUrl() string

func (*HostCredentialsProvider) GetOAuthEndpoint

func (g *HostCredentialsProvider) GetOAuthEndpoint() string

func (*HostCredentialsProvider) GetServiceProviderUrlForRepo

func (g *HostCredentialsProvider) GetServiceProviderUrlForRepo(repoUrl string) (string, error)

func (*HostCredentialsProvider) GetType

func (*HostCredentialsProvider) LookupToken

func (*HostCredentialsProvider) MapToken

func (*HostCredentialsProvider) OAuthScopesFor added in v0.6.8

func (g *HostCredentialsProvider) OAuthScopesFor(_ *api.Permissions) []string

func (*HostCredentialsProvider) PersistMetadata

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

Jump to

Keyboard shortcuts

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