gcp

package
v0.0.0-...-e0ee0a9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KMS

type KMS struct {
	// contains filtered or unexported fields
}

func NewKMSSigner

func NewKMSSigner(ctx context.Context, name string) (*KMS, error)

NewKMSSigner creates a Signer that signs using a key from Google Cloud's Key Management Service. Release resources by calling Close().

func (*KMS) Close

func (k *KMS) Close() error

func (*KMS) Sign

func (k *KMS) Sign(message []byte) ([]byte, error)

func (*KMS) Verify

func (k *KMS) Verify(message, sig []byte) error

Jump to

Keyboard shortcuts

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