gcp

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package gcp allows to fetch secrets from GCP Secret Manager service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretManagerBackend

type SecretManagerBackend struct {
	Config SecretManagerBackendConfig
	Client *http.Client
}

SecretManagerBackend represents backend for GCP Secret Manager

func NewSecretManagerBackend

func NewSecretManagerBackend(bc map[string]interface{}) (*SecretManagerBackend, error)

NewSecretManagerBackend returns a new GCP Secret Manager backend

func (*SecretManagerBackend) GetSecretOutput

func (b *SecretManagerBackend) GetSecretOutput(ctx context.Context, secretString string) secret.Output

GetSecretOutput retrieves a secret from GCP Secret Manager

type SecretManagerBackendConfig

type SecretManagerBackendConfig struct {
	Session struct {
		ProjectID string `mapstructure:"project_id"`
	} `mapstructure:"gcp_session"`
}

SecretManagerBackendConfig is the configuration for GCP Secret Manager backend

Jump to

Keyboard shortcuts

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