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.
Click to show internal directories.
Click to hide internal directories.