backends

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetBackendConfigs

func SetBackendConfigs(config *Configs) error

Types

type Configs

type Configs struct {
	VaultToken        string
	VaultURL          string
	EncryptionKeyPath string
}

func NewConfig

func NewConfig() *Configs

type EncryptorClient

type EncryptorClient interface {
	GetEncryptedText(keyName string, clearText string) (string, error)
	GetClearText(keyName string, cipherText string) (string, error)
	Sign(keyName string, text string) (string, error)
	VerifySignature(keyName string, signature string, message string) (bool, error)
	Delete(keyName, cipherText string) error
}

EncryptorClient defines the interface for backend encryption clients

func New

func New(name string) (EncryptorClient, error)

New returns an encrytion client of a specific type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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