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 is used to interact with the Constellation keyservice. So far it is a copy of the joinservice's kms package.

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