awskms

package
v1.2.0-beta Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(ctx context.Context, config *Config) (aws.Config, error)

Types

type Config

type Config struct {
	AccessKeyID string `yaml:"access_key_id"`
	AccessKey   string `yaml:"secret_access_key"`
	Region      string `yaml:"region"`
}

Config contains AWS KMS backend configuration

type Vault

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

func New

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

New creates new AWS KMS backend

func (*Vault) Close

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

func (*Vault) List

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

List returns a list of keys stored under the backend

func (*Vault) Name

func (v *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