Help us shape the future of Go! Take the 2026 Go Developer Survey

writer

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

Functions

func CopyCredsToHome

func CopyCredsToHome(credPaths []string) error

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

func SortAnnotations(secrets map[string]string, annotationPrefix string) []string

SortAnnotations return sorted array of strings which has annotationPrefix as the prefix in secrets key

Types

type Writer

type Writer interface {
	// Write writes the credentials to the provided directory.
	Write(folder string) error
}

Writer is the interface for a credential initializer of any type.

Jump to

Keyboard shortcuts

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