 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
var CredsInitCredentials = []string{".docker", ".gitconfig", ".git-credentials", ".ssh"}
    CredsInitCredentials is the complete list of credentials that the legacy credentials helper (aka "creds-init") can write to /tekton/creds.
var VolumePath = "/tekton/creds-secrets"
    VolumePath is the path where build secrets are written. It is mutable and exported for testing.
Functions ¶
func CopyCredsToHome ¶ added in v0.11.0
CopyCredsToHome copies credentials from the /tekton/creds directory into the current Step's HOME directory. A list of credential paths to try and copy is given as an arg, for example, []string{".docker", ".ssh"}. A missing /tekton/creds directory is not considered an error.
func SortAnnotations ¶
SortAnnotations return sorted array of strings which has annotationPrefix as the prefix in secrets key
func VolumeName ¶
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(secret *corev1.Secret) []string
	// Write writes the credentials to the provided directory.
	Write(folder string) error
}
    Builder is the interface for a credential initializer of any type.