manager

package
v0.0.0-...-084323b Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyManagerProviderSet = wire.NewSet(
	NewKeyManager,
)
View Source
var VaultProviderSet = wire.NewSet(
	NewVaultLogMetadataManager,
)

Functions

func NewKeyManager

func NewKeyManager() model.KeyManager

func NewVaultLogMetadataManager

func NewVaultLogMetadataManager(cfg *opt.Config, vaultClient *api.Client) (model.LogMetadataManager, error)

Types

type KeyManager

type KeyManager struct {
}

func (*KeyManager) Create

func (m *KeyManager) Create(ctx context.Context) (string, error)

func (*KeyManager) Decrypt

func (m *KeyManager) Decrypt(ctx context.Context, key string, data []byte) ([]byte, error)

func (*KeyManager) Encrypt

func (m *KeyManager) Encrypt(ctx context.Context, key string, data []byte) ([]byte, error)

type VaultLogMetadataManager

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

func (*VaultLogMetadataManager) Create

func (*VaultLogMetadataManager) Get

Jump to

Keyboard shortcuts

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