database

package
v0.0.0-...-85ffd96 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const UID = "DATABASE"

Variables

This section is empty.

Functions

func NewSecretGetter

func NewSecretGetter(c *vaultapi.Client, path string, role string) secret.SecretGetter

func NewSecretManager

func NewSecretManager() secret.SecretManager

func NewSecretManagerWithOptions

func NewSecretManagerWithOptions(c *vaultapi.Client, opts map[string]string) secret.SecretManager

Types

type SecretInfo

type SecretInfo struct {
	// Specifies the path where secret engine is enabled
	Path string

	// Specifies the role for credential
	Role string

	Client *vaultapi.Client
}

func New

func New() *SecretInfo

func (*SecretInfo) GetSecret

func (s *SecretInfo) GetSecret() (*vaultapi.Secret, error)

func (*SecretInfo) SetOptions

func (s *SecretInfo) SetOptions(c *vaultapi.Client, opts map[string]string) error

Jump to

Keyboard shortcuts

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