aws

package
v88.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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

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

NewAwsSigner creates a new AWS signer.

func NewAwsSignerFromClient

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

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