secrets

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessSecret

func AccessSecret(ctx context.Context, client *secretmanager.Client, secretResourceName string) (string, error)

AccessSecret reads a secret from Secret Manager using the given client and validates that it was not corrupted during retrieval. The secretResourceName should be in the format: 'projects/*/secrets/*/versions/*'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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