secret

package
v0.0.0-...-9822a24 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, path string) ([]byte, error)

Get retrieves the secret data for the specified path using the Google Secret Manager API. It returns the secret data as a byte array and an error if the retrieval fails. The function relies on the getSecret function to access the secret version data. The getSecret function creates a SecretManager client and sends a request to access the specified secret version. If an error occurs during the process, the function returns nil for the secret data and an error describing the issue.

func GetFromVolume

func GetFromVolume(path string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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