secrets

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package secrets provides primitives for resolving secrets from external sources, such as Hashicorp Vault or Azure Key Vault, into Credential Sets and injecting them into bundle runtimes.

Index

Constants

View Source
const PluginInterface = "secrets"

PluginInterface for the secrets. This first part of the three-part plugin key is only seen/used by the plugins when the host is communicating with the plugin and is not exposed to users.

View Source
const SourceSecret = "secret"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Resolve

func (g *Client) Resolve(keyName string, keyValue string) (string, error)

type Plugin

type Plugin struct {
	Impl cnabsecrets.Store
}

Plugin is a generic type of plugin for working with any implementation of a secret store.

func (Plugin) Client

func (Plugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*Plugin) Server

func (p *Plugin) Server(*plugin.MuxBroker) (interface{}, error)

type SecretStore

type SecretStore struct {
	AutoClose bool
	// contains filtered or unexported fields
}

SecretStore wraps a source of secrets, that may have Connect/Close methods.

func NewSecretStore

func NewSecretStore(store cnabsecrets.Store) *SecretStore

func (SecretStore) Close

func (s SecretStore) Close() error

func (SecretStore) Connect

func (s SecretStore) Connect() error

func (SecretStore) Resolve

func (s SecretStore) Resolve(keyName string, keyValue string) (string, error)

type Server

type Server struct {
	Impl cnabsecrets.Store
}

func (*Server) Resolve

func (s *Server) Resolve(args map[string]interface{}, resp *string) error

Directories

Path Synopsis
Package host provides a plugin implementing the original behavior of resolving secrets from the local host: environment variables, paths, commands and static values.
Package host provides a plugin implementing the original behavior of resolving secrets from the local host: environment variables, paths, commands and static values.
Package inmemory provides an in-memory implementation of a secret store suitable for unit testing.
Package inmemory provides an in-memory implementation of a secret store suitable for unit testing.
Package pluginstore is an internal Porter package that implements the secret.Store interface via plugins.
Package pluginstore is an internal Porter package that implements the secret.Store interface via plugins.

Jump to

Keyboard shortcuts

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