Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VolumePath = "/var/build-secrets"
VolumePath is the path where build secrets are written. It is mutable and exported for testing.
Functions ¶
func SortAnnotations ¶ added in v0.2.0
func SortAnnotations(secrets map[string]string, annotationPrefix string) []string
SortAnnotations return sorted array of strings which has annotationPrefix as the prefix in secrets key
func VolumeName ¶
func VolumeName(secretName string) string
VolumeName returns the full path to the secret, inside the VolumePath.
Types ¶
type Builder ¶
type Builder interface {
// MatchingAnnotations extracts flags for the credential
// helper from the supplied secret and returns a slice (of
// length 0 or greater) of applicable domains.
MatchingAnnotations(*corev1.Secret) []string
// Write writes the credentials to the correct location.
Write() error
}
Builder is the interface for a credential initializer of any type.
Click to show internal directories.
Click to hide internal directories.