vault

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApplicationCredentialsData string `yaml:"application_credentials_data"`
	ApplicationCredentials     string `yaml:"application_credentials"`
	Project                    string `yaml:"project" validate:"required"`
	Location                   string `yaml:"location" validate:"required"`
	KeyRing                    string `yaml:"key_ring" validate:"required"`
}

Config contains Google Cloud KMS backend configuration

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

Vault is a Google Cloud KMS backend

func New

func New(ctx context.Context, config *Config) (*Vault, error)

New creates new Google Cloud KMS backend

func (*Vault) Close added in v1.2.0

func (c *Vault) Close(context.Context) error

func (*Vault) Import

Import imports a private key

func (*Vault) List added in v1.2.0

func (c *Vault) List(ctx context.Context) vault.KeyIterator

List returns a list of keys stored under the backend

func (*Vault) Name

func (c *Vault) Name() string

Name returns backend name

Jump to

Keyboard shortcuts

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