vault

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package vault implements a koanf.Provider for Hashicorp Vault KV secrets engine and provides it to koanf to be parsed by a koanf.Parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Vault server address
	Address string

	// Vault static token
	Token string

	// Secret data path
	Path string

	// Internal HTTP client timeout
	Timeout time.Duration
}

type Vault

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

func Provider

func Provider(cfg Config) *Vault

func (*Vault) Read

func (r *Vault) Read() (map[string]interface{}, error)

func (*Vault) ReadBytes

func (r *Vault) ReadBytes() ([]byte, error)

Jump to

Keyboard shortcuts

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