gcloud

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package gcloud wires the Google Cloud Secret Manager adapter into a provider.Factory / provider.Registry. It builds a Secret Manager client from Application Default Credentials and hands it to the secret subpackage.

Google Cloud offers no parameter store, so the factory returns provider.ErrUnsupportedKind for KindParam.

Index

Constants

View Source
const EmulatorEnvVar = "SUVE_GCLOUD_SECRETMANAGER_ENDPOINT"

EmulatorEnvVar is the environment variable that, when set (e.g. to "localhost:9090"), points the Secret Manager client at a local emulator over plaintext gRPC with no authentication. It is a testing seam only: in normal use it is unset and the client uses Application Default Credentials over TLS. Never set this in production.

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry() *provider.Registry

NewRegistry returns a provider.Registry with the Google Cloud provider registered.

func Register

func Register(reg *provider.Registry)

Register associates the Google Cloud Factory with provider.ProviderGoogleCloud in reg.

Types

type Factory

type Factory struct{}

Factory builds Google Cloud-backed provider.Store values for a scope + kind.

func (Factory) Store

func (Factory) Store(ctx context.Context, scope provider.Scope, kind provider.Kind) (provider.Store, error)

Store builds a Store for the given scope and kind. Google Cloud supports only KindSecret; KindParam yields provider.ErrUnsupportedKind. The Secret Manager client authenticates via Application Default Credentials.

Directories

Path Synopsis
Package secret implements the provider.Store contract (Reader/Writer/Tagger) for Google Cloud Secret Manager.
Package secret implements the provider.Store contract (Reader/Writer/Tagger) for Google Cloud Secret Manager.

Jump to

Keyboard shortcuts

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