aws

package
v0.0.0-...-80ff8fe Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPublicKeyReconstruction = errors.New("can not reconstruct public key from sig")

Functions

This section is empty.

Types

type KeyManagementSystem

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

KeyManagementSystem is a wrapper around the AWS KMS client to provide additional functionality.

func NewKeyManagementSystem

func NewKeyManagementSystem(region, accessKeyID, secretKey string) *KeyManagementSystem

NewKeyManagementSystem creates a new KeyManagementSystem instance with the provided AWS region and credentials.

func NewKeyManagementSystemFromConfig

func NewKeyManagementSystemFromConfig(cfg aws.Config) *KeyManagementSystem

NewKeyManagementSystem creates a new KeyManagementSystem instance.

func (*KeyManagementSystem) GenerateKey

func (awsKms *KeyManagementSystem) GenerateKey(ctx context.Context) (string, error)

GenerateKey uses the AWS KMS to generate a new key.

func (*KeyManagementSystem) GetSigner

func (awsKms *KeyManagementSystem) GetSigner(id string) (types.TxSigner, error)

GetSigner returns a TxSigner instance that uses the AWS KMS.

func (*KeyManagementSystem) ListKeysByID

func (awsKms *KeyManagementSystem) ListKeysByID(ctx context.Context) ([]string, error)

ListKeysByID retrieves all keys managed by the AWS KMS.

Jump to

Keyboard shortcuts

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