secretmanager

package
v1.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const VersionID = "version_id"

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store contains and GCP secret manager client and project id.

func NewSecreteManager

func NewSecreteManager(logger logger.Logger) *Store

NewSecreteManager returns new instance of `SecretManagerStore`.

func (*Store) BulkGetSecret added in v1.0.0

BulkGetSecret retrieves all secrets in the store and returns a map of decrypted string/string values.

func (*Store) GetSecret

GetSecret retrieves a secret using a key and returns a map of decrypted string.

func (*Store) Init

func (s *Store) Init(metadataRaw secretstores.Metadata) error

Init creates a GCP secret manager client.

Jump to

Keyboard shortcuts

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