manifestsecrets

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildManager

func BuildManager(enableSecureManifests bool, matcher Matcher, secretsFetcher CredhubOperator) broker.ManifestSecretManager

Types

type BoshCredHubSecretManager

type BoshCredHubSecretManager struct {
	// contains filtered or unexported fields
}

func (*BoshCredHubSecretManager) DeleteSecretsForInstance

func (r *BoshCredHubSecretManager) DeleteSecretsForInstance(instanceID string, logger *log.Logger) error

func (*BoshCredHubSecretManager) ResolveManifestSecrets

func (r *BoshCredHubSecretManager) ResolveManifestSecrets(manifest []byte, deploymentVariables []boshdirector.Variable, logger *log.Logger) (map[string]string, error)

type CredHubPathMatcher

type CredHubPathMatcher struct{}

func (*CredHubPathMatcher) Match

func (m *CredHubPathMatcher) Match(manifest []byte, deploymentVariables []boshdirector.Variable) (map[string]boshdirector.Variable, error)

type CredhubOperator

type CredhubOperator interface {
	BulkGet(map[string]boshdirector.Variable, *log.Logger) (map[string]string, error)
	FindNameLike(name string, logger *log.Logger) ([]string, error)
	BulkDelete(paths []string, logger *log.Logger) error
}

type Matcher

type Matcher interface {
	Match(manifest []byte, deploymentVariables []boshdirector.Variable) (map[string]boshdirector.Variable, error)
}

type NoopSecretManager

type NoopSecretManager struct{}

func (*NoopSecretManager) DeleteSecretsForInstance

func (r *NoopSecretManager) DeleteSecretsForInstance(instanceID string, logger *log.Logger) error

func (*NoopSecretManager) ResolveManifestSecrets

func (r *NoopSecretManager) ResolveManifestSecrets(manifest []byte, deploymentVariables []boshdirector.Variable, logger *log.Logger) (map[string]string, error)

type ODBSecrets

type ODBSecrets struct {
	ServiceOfferingID string
}

func (ODBSecrets) GenerateSecretPaths

func (o ODBSecrets) GenerateSecretPaths(deploymentName, manifest string, secretsMap serviceadapter.ODBManagedSecrets) []broker.ManifestSecret

func (ODBSecrets) ReplaceODBRefs

func (o ODBSecrets) ReplaceODBRefs(manifest string, secrets []broker.ManifestSecret) string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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