secretmanager

package
v0.0.0-...-fb8c843 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package secretmanager creates an interface for working with the GCP SecretManager API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecret

func GetSecret(ctx context.Context, secretName string, projectID, versionNumber int) (secret string, err error)

GetSecret requests and returns a secret from GCP SecretManager.

NOTE: secretName is in the format "projects/<projectNumber>/secrets/<secretName>/versions/<versionNumber>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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