Documentation
¶
Index ¶
- Variables
- func Configured(ctx context.Context, gatewayClient *gclient.Client, credentialID string) (bool, error)
- func Delete(ctx context.Context, gatewayClient *gclient.Client, credentialID string) error
- func NormalizeHost(value string) (string, error)
- func References(ctx context.Context, storageClient client.Client, ...) (v1.GitCredentialReferences, error)
- func Resolve(ctx context.Context, storageClient client.Client, ...) (string, error)
- func ResolveOrReveal(ctx context.Context, storageClient client.Client, ...) (string, error)
- func Store(ctx context.Context, gatewayClient *gclient.Client, credentialID, token string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLegacyCredential = errors.New("failed to reveal legacy Git credential")
Functions ¶
func Configured ¶
func Configured(ctx context.Context, gatewayClient *gclient.Client, credentialID string) (bool, error)
Configured reports whether the identified Git credential has a stored token.
func NormalizeHost ¶
NormalizeHost validates and canonicalizes a Git credential host.
func References ¶
func References(ctx context.Context, storageClient client.Client, namespace, credentialID string) (v1.GitCredentialReferences, error)
References lists resources in the namespace that use the identified Git credential.
func Resolve ¶
func Resolve(ctx context.Context, storageClient client.Client, gatewayClient *gclient.Client, namespace, credentialID, sourceURL string) (string, error)
Resolve validates a Git credential for a source URL and returns its stored token.
func ResolveOrReveal ¶
func ResolveOrReveal(ctx context.Context, storageClient client.Client, gatewayClient *gclient.Client, namespace, credentialID, sourceURL, legacyCredentialContext, legacyToolName string) (string, error)
ResolveOrReveal resolves a shared Git credential or falls back to a legacy source-specific token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.