credentials

package
v0.0.0-...-09780b5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScmCredentialsSecretLabel     = "appstudio.redhat.com/credentials"
	ScmSecretHostnameLabel        = "appstudio.redhat.com/scm.host"
	ScmSecretRepositoryAnnotation = "appstudio.redhat.com/scm.repository"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthCredentials

type BasicAuthCredentials struct {
	Username string
	Password string
}

type BasicAuthCredentialsProvider

type BasicAuthCredentialsProvider interface {
	GetBasicAuthCredentials(ctx context.Context, component *git.ScmComponent) (*BasicAuthCredentials, error)
}

type BasicAuthCredentialsProviderFunc

type BasicAuthCredentialsProviderFunc func(ctx context.Context, component *git.ScmComponent) (*BasicAuthCredentials, error)

func (BasicAuthCredentialsProviderFunc) GetBasicAuthCredentials

func (f BasicAuthCredentialsProviderFunc) GetBasicAuthCredentials(ctx context.Context, component *git.ScmComponent) (*BasicAuthCredentials, error)

type SSHCredentials

type SSHCredentials struct {
	PrivateKey []byte
}

type SSHCredentialsCredentialsProvider

type SSHCredentialsCredentialsProvider interface {
	GetSSHCredentials(ctx context.Context, component git.ScmComponent) (*SSHCredentials, error)
}

Jump to

Keyboard shortcuts

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