vault

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 15 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 NewDryRunFake added in v1.4.0

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

NewDryRunFake returns a new fake vault module for dry run.

func NewFake

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

NewFake returns a new fake vault module for testing.

func NewFakeModule added in v1.4.0

func NewFakeModule(fakeVault *fakeVault) (m starlark.HasAttrs, err error)

NewFakeModule constructs and returns a new vault module that doesn't actually read values in vault.

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