gcp

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 11 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 FetchProjectIDUsingCmd added in v0.0.76

func FetchProjectIDUsingCmd(cmd *cobra.Command) (string, cleanupFunc, error)

FetchProjectIDUsingCmd will return the GCP project id using the provided cobra command to find the project id. It will also return a cleanup function that should be called to clean up any temporary files created.

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