kms

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements the AWS KMS emulator. Key material is generated locally using crypto/rand. Encrypt/Decrypt use real AES-256-GCM so ciphertexts produced by the emulator are genuinely decryptable — they are not forwarded to AWS.

func New

func New(region string) *Service

func (*Service) Detect

func (s *Service) Detect(r *http.Request) bool

Detect identifies KMS requests by X-Amz-Target header (TrentService.*).

func (*Service) Name

func (s *Service) Name() string

func (*Service) Reset added in v0.4.16

func (s *Service) Reset()

Reset clears all keys, aliases, and grants.

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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