Documentation ¶
Index ¶
- type ConfigReader
- type GitCredentialProvider
- func (k *GitCredentialProvider) GetBasicAuthCredentials(ctx context.Context, component *git.ScmComponent) (*BasicAuthCredentials, error)
- func (k *GitCredentialProvider) GetSSHCredentials(ctx context.Context, component *git.ScmComponent) (*SSHCredentials, error)
- func (k *GitCredentialProvider) LookupSecret(ctx context.Context, component *git.ScmComponent, secretType corev1.SecretType) (*corev1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigReader ¶
type ConfigReader struct {
// contains filtered or unexported fields
}
func NewGithubAppConfigReader ¶
func NewGithubAppConfigReader(client client.Client, scheme *runtime.Scheme, eventRecorder record.EventRecorder) ConfigReader
type GitCredentialProvider ¶
type GitCredentialProvider struct {
// contains filtered or unexported fields
}
GitCredentialProvider is an implementation of the git.CredentialsProvider that retrieves the git credentials from the Kubernetes secrets
func NewGitCredentialProvider ¶
func NewGitCredentialProvider(client client.Client) *GitCredentialProvider
func (*GitCredentialProvider) GetBasicAuthCredentials ¶
func (k *GitCredentialProvider) GetBasicAuthCredentials(ctx context.Context, component *git.ScmComponent) (*BasicAuthCredentials, error)
func (*GitCredentialProvider) GetSSHCredentials ¶
func (k *GitCredentialProvider) GetSSHCredentials(ctx context.Context, component *git.ScmComponent) (*SSHCredentials, error)
func (*GitCredentialProvider) LookupSecret ¶
func (k *GitCredentialProvider) LookupSecret(ctx context.Context, component *git.ScmComponent, secretType corev1.SecretType) (*corev1.Secret, error)
Click to show internal directories.
Click to hide internal directories.