Documentation
¶
Overview ¶
Package awskms implements Iceberg key wrapping with AWS Key Management Service. Import this package to register the "aws" KMS provider. The provider uses the AWS SDK credential chain and accepts client.region and kms.endpoint when loaded by the registry.
Index ¶
- type Client
- func (c *Client) GenerateKey(ctx context.Context, keyID string, length int) (plaintext, wrapped []byte, err error)
- func (*Client) SupportsKeyGeneration() bool
- func (c *Client) UnwrapKey(ctx context.Context, keyID string, wrappedKey []byte) ([]byte, error)
- func (c *Client) WrapKey(ctx context.Context, keyID string, plaintextKey []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps data keys with a symmetric AWS KMS key. Key IDs may be key IDs, key ARNs, alias names, or alias ARNs accepted by AWS KMS. A Client is safe for concurrent use.
func NewClient ¶
NewClient constructs a KMS client using cfg's credentials, region, and transport. Options can configure service-specific settings such as a custom endpoint.
func (*Client) GenerateKey ¶
func (c *Client) GenerateKey(ctx context.Context, keyID string, length int) (plaintext, wrapped []byte, err error)
GenerateKey creates a data key of length bytes. AWS KMS accepts 1 to 1024 bytes.
func (*Client) SupportsKeyGeneration ¶
SupportsKeyGeneration reports that KMS can generate and wrap data keys.