Documentation ¶
Overview ¶
Secrets is for interaction with the GCP secrets manager
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessSecretVersion ¶
WARNING: Do not print the secret in a production environment
AccessSecretVersion accesses the payload for the given secret version if one exists. The version can be a version number as a string (e.g. "5") or an alias (e.g. "latest").
Snippet based upon https://github.com/GoogleCloudPlatform/golang-samples/blob/968c611f22fca94d82ffcb3ab77b52d51bc4408f/secretmanager/access_secret_version.go#L17-L67 Copyright 2019 Google LLC - Apache V2
This version is modified from the original to take a context.Context and return [(string, error)]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.