secrets

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BotTokenSecretID = "BOT_TOKEN"

Variables

This section is empty.

Functions

func BuildSecretName

func BuildSecretName(projectID, secretID, version string) string

Types

type Client

type Client struct {
	*secretmanager.Service
}

func NewClient

func NewClient(ctx context.Context) (*Client, error)

func (Client) GetSecretValue

func (c Client) GetSecretValue(ctx context.Context, name string) (string, error)

GetSecretValue returns the value of the secret with the given secret version name. Note: please, use the BuildSecretName function to build a correct secret version name.

Jump to

Keyboard shortcuts

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