hostcredentials

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: 10 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 *opconfig.OperatorConfiguration
	// 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) GetDownloadFileCapability added in v0.8.3

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

func (*HostCredentialsProvider) GetOAuthCapability added in v0.2023.21

func (*HostCredentialsProvider) GetRefreshTokenCapability added in v0.2023.21

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

func (*HostCredentialsProvider) GetType

func (*HostCredentialsProvider) LookupTokens added in v0.2023.21

func (*HostCredentialsProvider) MapToken

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