fakekeymanager

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyManager

type KeyManager struct {
	Key crypto.Signer
}

KeyManager is a fake key manager that returns the same key for all requests

func (KeyManager) GenerateKey

func (f KeyManager) GenerateKey(ctx context.Context, id string, keyType cryptoutil.KeyType) (keymanager.Key, error)

func (KeyManager) GetKey

func (f KeyManager) GetKey(ctx context.Context, id string) (keymanager.Key, error)

func (KeyManager) GetKeys

func (f KeyManager) GetKeys(ctx context.Context) ([]keymanager.Key, error)

Jump to

Keyboard shortcuts

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