vault

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

package vault implements "vault" built-in package to access Vault API from an addon.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoToken = errors.New("tried to access Vault but token is empty. Please set --vault_token or $VAULT_TOKEN")
)

Functions

func New

func New(c *vault.Client) *isopod.Module

New returns a new skaylark.HasAttrs object for vault package.

func NewFake

func NewFake() (m starlark.HasAttrs, closeFn func(), err error)

NewFake returns a new fake vault module for testing.

func ReadVaultPath added in v1.1.0

func ReadVaultPath(path string) (string, error)

ReadVaultPath takes in the Vault path and returns the value as a string. Must have VAULT_ADDR set, and vault token is grabbed from flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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