secrets

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store holds a copy of secrets from vault

func Load

func Load(c config.Vault) (*Store, error)

Load connects to Vault and returns a secret Store populated with secrets

func (*Store) Get

func (s *Store) Get(k string) (string, error)

Get retrieves a secret based on the given key

func (*Store) GetSignerToken added in v0.1.1

func (s *Store) GetSignerToken(v string) (string, error)

GetSignerToken is a helper method to retrieve and return the signer token key

func (*Store) SetCredentials added in v0.1.1

func (s *Store) SetCredentials(config []map[string]string) ([]map[string]string, error)

SetCredentials updates credentials that contain the lookup_secret keyword

Jump to

Keyboard shortcuts

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