Documentation
¶
Index ¶
- Constants
- func NewSecreteManager(logger logger.Logger) secretstores.SecretStore
- type Store
- func (s *Store) BulkGetSecret(ctx context.Context, req secretstores.BulkGetSecretRequest) (secretstores.BulkGetSecretResponse, error)
- func (s *Store) Features() []secretstores.Feature
- func (s *Store) GetSecret(ctx context.Context, req secretstores.GetSecretRequest) (secretstores.GetSecretResponse, error)
- func (s *Store) Init(metadataRaw secretstores.Metadata) error
Constants ¶
View Source
const VersionID = "version_id"
Variables ¶
This section is empty.
Functions ¶
func NewSecreteManager ¶
func NewSecreteManager(logger logger.Logger) secretstores.SecretStore
NewSecreteManager returns new instance of `SecretManagerStore`.
Types ¶
type Store ¶
type Store struct { ProjectID string // contains filtered or unexported fields }
Store contains and GCP secret manager client and project id.
func (*Store) BulkGetSecret ¶ added in v1.0.0
func (s *Store) BulkGetSecret(ctx context.Context, req secretstores.BulkGetSecretRequest) (secretstores.BulkGetSecretResponse, error)
BulkGetSecret retrieves all secrets in the store and returns a map of decrypted string/string values.
func (*Store) Features ¶ added in v1.9.0
func (s *Store) Features() []secretstores.Feature
Features returns the features available in this secret store.
func (*Store) GetSecret ¶
func (s *Store) GetSecret(ctx context.Context, req secretstores.GetSecretRequest) (secretstores.GetSecretResponse, error)
GetSecret retrieves a secret using a key and returns a map of decrypted string.
Click to show internal directories.
Click to hide internal directories.