vault

package
v0.0.0-...-5317efb Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVaultSecret

func NewVaultSecret(engineString string, mount string, path string) *vaultSecret

secret constructor

Types

type AuthEngine

type AuthEngine string

authentication engine with pseudo-enum

type Metadata

type Metadata struct {
	LeaseID       string
	LeaseDuration string
	Renewable     string
}

secret metadata

type VaultConfig

type VaultConfig struct {
	Engine       AuthEngine
	Address      string
	AWSMountPath string
	AWSRole      string
	Token        string
	Insecure     bool
}

VaultConfig defines vault api interface config

func (*VaultConfig) AuthClient

func (config *VaultConfig) AuthClient() *vault.Client

instantiate authenticated vault client with aws-iam or token auth

func (*VaultConfig) New

func (config *VaultConfig) New()

VaultConfig constructor

Jump to

Keyboard shortcuts

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