secretsengine

package
v1.3.1-dev.18.0...-398431f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KVSecretsEngineMountPoint is the name of the mount point base for Vault's key-value secrets engine
	KVSecretsEngineMountPoint = "secret"
	// ConsulSecretEngineMountPoint is the name of the mount point base for Vault's Consul secrets engine
	ConsulSecretEngineMountPoint = "consul"

	// Vault's secrets engine type related constants
	KeyValue = "kv"
	Consul   = "consul"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretsEngine

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

SecretsEngine is the metadata for secretstore secret engine enabler

func New

func New(mountPoint string, engineType string) SecretsEngine

New creates an instance for SecretsEngine with mountPoint and engineType

func (SecretsEngine) Enable

func (eng SecretsEngine) Enable(rootToken *string,
	lc logger.LoggingClient,
	client secrets.SecretStoreClient) error

Enable enables the specified secrets engine for the secretstore the rootToken is required and returns error if not provided or invalid token provided also returns error if unsupported / unknown secretsEngineType is used

Jump to

Keyboard shortcuts

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