kms

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package kms handles communication with Constellation's key service to request data encryption keys for new or rejoining nodes.

Index

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 interacts with Constellation's keyservice.

func New

func New(log *slog.Logger, endpoint string) Client

New creates a new KMS.

func (Client) GetDataKey

func (c Client) GetDataKey(ctx context.Context, keyID string, length int) ([]byte, error)

GetDataKey returns a data encryption key for the given UUID.

Jump to

Keyboard shortcuts

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