secrets

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Unlicense Imports: 6 Imported by: 0

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

func AccessSecretVersion(ctx context.Context, name string) (string, error)

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.

Jump to

Keyboard shortcuts

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