credentials

package
v0.0.0-...-8a8da8d Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

README

credential-initializer

Forked from https://github.com/knative/build/tree/03bcdb237180e6162c390888355196c3a5e37829/pkg/credentials

  • Changed annotation prefix from build.knative.dev to credential.kube.ci
  • Do not use shorthand flags i.e. --flag instead of -flag

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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