vpc

package
v0.0.0-...-ce7e112 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 6 Imported by: 0

Documentation

Overview

Package vpc contains utilties for handling VPC-protected keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURIAndCerts

func GetURIAndCerts(ctx context.Context, client CloudEKMClient, cryptoKey *rpb.CryptoKey) (string, *x509.CertPool, error)

GetURIAndCerts uses the provided client to get the EKM URI and service resolver certificates for the given cryptoKey.

Types

type CloudEKMClient

type CloudEKMClient interface {
	GetEkmConnection(context.Context, *ekmpb.GetEkmConnectionRequest, ...gax.CallOption) (*ekmpb.EkmConnection, error)
	Close() error
}

CloudEKMClient is an interface corresponding to CloudKMS' EKMClient.

Jump to

Keyboard shortcuts

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