cloud

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cloud resolves cloud and enterprise secret refs (Vault, AWS), analogous to

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSKMS

func NewAWSKMS() ref.Backend

NewAWSKMS returns an AWS KMS decrypt backend.

func NewAWSSM

func NewAWSSM() ref.Backend

NewAWSSM returns an AWS Secrets Manager backend.

func NewVault

func NewVault() ref.Backend

NewVault returns a Vault backend.

Types

type AWSKMSBackend

type AWSKMSBackend struct{}

AWSKMSBackend implements ref.Backend for aws-kms:<base64 ciphertext>.

func (AWSKMSBackend) Handles

func (AWSKMSBackend) Handles(ref string) bool

Handles implements ref.Backend.

func (AWSKMSBackend) Name

func (AWSKMSBackend) Name() string

Name implements ref.Backend.

func (AWSKMSBackend) Resolve

func (AWSKMSBackend) Resolve(ctx context.Context, ref string) (string, error)

Resolve implements ref.Backend.

type AWSSMBackend

type AWSSMBackend struct{}

AWSSMBackend implements ref.Backend for aws-sm:id.

func (AWSSMBackend) Handles

func (AWSSMBackend) Handles(ref string) bool

Handles implements ref.Backend.

func (AWSSMBackend) Name

func (AWSSMBackend) Name() string

Name implements ref.Backend.

func (AWSSMBackend) Resolve

func (AWSSMBackend) Resolve(ctx context.Context, ref string) (string, error)

Resolve implements ref.Backend.

type VaultBackend

type VaultBackend struct{}

VaultBackend implements ref.Backend for vault:path#field.

func (VaultBackend) Handles

func (VaultBackend) Handles(ref string) bool

Handles implements ref.Backend.

func (VaultBackend) Name

func (VaultBackend) Name() string

Name implements ref.Backend.

func (VaultBackend) Resolve

func (VaultBackend) Resolve(_ context.Context, ref string) (string, error)

Resolve implements ref.Backend.

Jump to

Keyboard shortcuts

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