vault

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultSecrets

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

VaultSecrets implements a secret.Store backed by Hashicorp Vault

func New

func New(addr, basepath, token string, renewal time.Duration) (v *VaultSecrets, err error)

New creates a new Vault client and pings the server

func (*VaultSecrets) GetSecretsForTarget

func (v *VaultSecrets) GetSecretsForTarget(name string) (map[string]string, error)

GetSecretsForTarget implements secret.Store

func (*VaultSecrets) Renew

func (v *VaultSecrets) Renew(ctx context.Context) error

RenewEvery starts a renewal ticker and blocks until fatal error works well with github.com/eapache/go-resiliency

Jump to

Keyboard shortcuts

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