matcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VolumePath = "/tekton/creds-secrets"

VolumePath is the path where build secrets are written. It is mutable and exported for testing.

Functions

func GetSecretType

func GetSecretType(secret Secret) string

GetSecretType returns secret type from secret interface using reflection

func VolumeName

func VolumeName(secretName string) string

VolumeName returns the full path to the secret, inside the VolumePath.

Types

type Matcher

type Matcher interface {
	// MatchingAnnotations extracts flags for the credential
	// helper from the supplied secret and returns a slice (of length 0 or greater)
	MatchingAnnotations(secret Secret) []string
}

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

type Secret

type Secret interface {
	GetName() string
	GetAnnotations() map[string]string
}

Secret is the minimal interface needed for credential matching

Jump to

Keyboard shortcuts

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