edv

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorageProvider

func NewStorageProvider(ctx context.Context, c *Config) (storage.Provider, error)

NewStorageProvider returns a new EDV storage provider instance.

Types

type Config

type Config struct {
	KeyManager     kms.KeyManager
	CryptoService  crypto.Crypto
	HeaderSigner   HeaderSigner
	CacheProvider  storage.Provider
	TLSConfig      *tls.Config
	EDVCapability  json.RawMessage
	EDVServerURL   string
	VaultID        string
	RecipientKeyID string
	MACKeyID       string
}

Config defines configuration for the EDV storage provider.

type HeaderSigner

type HeaderSigner interface {
	SignHeader(*http.Request, []byte) (*http.Header, error)
}

HeaderSigner computes a signature on the request and returns a header with the signature.

Jump to

Keyboard shortcuts

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