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 Plugin ¶
type Plugin struct {
Impl cnabsecrets.Store
}
Plugin is a generic type of plugin for working with any implementation of a secret store.
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
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. |
Click to show internal directories.
Click to hide internal directories.