aws

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package aws provides an AWS KMS signer implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAwsSigner added in v0.1.1

func NewAwsSigner(ctx context.Context, key string, optFns ...func(*config.LoadOptions) error) (provider.Provider, error)

NewAwsSigner creates a new AWS signer.

func NewAwsSignerFromClient added in v0.12.0

func NewAwsSignerFromClient(ctx context.Context, key string, client KMSClient) provider.Provider

NewAwsSignerFromClient creates a new AWS signer with a pre-configured KMS client.

func NewSigner

func NewSigner(ctx context.Context, key string) (provider.Provider, error)

NewSigner returns a new AWS signer with default configuration.

Types

type KMSClient added in v0.12.0

type KMSClient interface {
	Sign(ctx context.Context, params *kms.SignInput, optFns ...func(*kms.Options)) (*kms.SignOutput, error)
	DescribeKey(ctx context.Context, params *kms.DescribeKeyInput, optFns ...func(*kms.Options)) (*kms.DescribeKeyOutput, error)
}

KMSClient defines the subset of kms.Client methods used by this provider.

Jump to

Keyboard shortcuts

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