gcpkms

package module
v0.0.0-...-fc99743 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Unwrap(stanzas []*age.Stanza) (fileKey []byte, err error)
	Close() error
}

Client is an age.Identity that needs to be closed after use.

func NewClient

func NewClient(ctx context.Context, names []string) (Client, error)

NewClient creates an age.Identity that decrypts using Google Cloud KMS. Only `RSA_DECRYPT_OAEP_*_SHA256` keys are supported. All decrypt operations use the context provided to NewClient. The underlying KeyManagementClient retains connection resources until Close is called on the Client.

Jump to

Keyboard shortcuts

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