kms

package
v0.0.0-...-624bbc4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderInit

type ProviderInit func(context.Context, string, crypto.Hash) (SignerVerifier, error)

type Providers

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

func ProvidersMux

func ProvidersMux() *Providers

func (*Providers) AddProvider

func (p *Providers) AddProvider(keyResourceID string, init ProviderInit)

func (*Providers) Providers

func (p *Providers) Providers() map[string]ProviderInit

type SignerVerifier

type SignerVerifier interface {
	signature.SignerVerifier
	CreateKey(ctx context.Context, algorithm string) (crypto.PublicKey, error)
	CryptoSigner(ctx context.Context, errFunc func(error)) (crypto.Signer, crypto.SignerOpts, error)
	SupportedAlgorithms() []string
	DefaultAlgorithm() string
}

func Get

func Get(ctx context.Context, keyResourceID string, hashFunc crypto.Hash) (SignerVerifier, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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