gcp

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GcpSecretsCacheTTLInMinutes int = 5
)

Functions

func AddVersion

func AddVersion(ctx context.Context, client *secretmanager.Client, project, name, secretData string) (string, error)

func FromCtx

func FromCtx(ctx context.Context) *secretmanager.Client

func GetSecret

func GetSecret(ctx context.Context, client *secretmanager.Client, project, name, version string) (string, error)

func PublishEvent

func PublishEvent(projectID, topicID string, data []byte, attributes map[string]string) (string, error)

Types

type FakeSecretManagerServerResponse

type FakeSecretManagerServerResponse struct {
	Response *secretmanagerpb.AccessSecretVersionResponse
	Err      error
}

Jump to

Keyboard shortcuts

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