kms

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package kms provides the AWS-backed keychain credential.

keychain.WithKMSClient takes an already-constructed crypto.KMSClient and so needs no SDK. WithARN below builds one on demand from a key ARN, which does. Separating them is what keeps pkg/keychain importable without the AWS SDK (RFC 0022 §6).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithARN

func WithARN(arn string) keychain.Credential

WithARN returns a credential using an AWS KMS key ARN, initializing the client on demand. Prefer keychain.WithKMSClient when a client is already available, or when the client needs a region, endpoint, or aws.Config — this constructor deliberately takes no options, so it resolves against the ambient AWS environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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