gcp

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchProjectID

func FetchProjectID() (string, error)

FetchProjectID will return the GCP project id

func FetchSecret

func FetchSecret(ctx context.Context, projectID string, name string) ([]byte, error)

FetchSecret will fetch a secret by name for a given project

func WriteSecret added in v0.0.7

func WriteSecret(ctx context.Context, projectID string, name string, sercretValue []byte) error

Types

type Secret added in v0.0.7

type Secret *secretmanagerpb.Secret

Jump to

Keyboard shortcuts

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