modules

package
v0.0.0-...-29ced6d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: AGPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Tenant string `json:"tenant"`
	Fil    string `json:"fil"`
}

Claims format

type Middleware

type Middleware func(ServiceVault) ServiceVault

Middleware type

func MakeServiceTracingMiddleware

func MakeServiceTracingMiddleware(tracer stdopentracing.Tracer) Middleware

MakeServiceTracingMiddleware wraps ServiceVault with a tracer

type ServiceVault

type ServiceVault interface {
	WriteKey(ctx context.Context, pathKey string, keyValue string) error
	ReadKey(ctx context.Context, pathKey string) (string, error)
	CreateKey(ctx context.Context, keyName string, params map[string]interface{}) error
	ExportKey(ctx context.Context, keyPath string) (map[string]interface{}, error)
	Encrypt(ctx context.Context, keyName string, params map[string]interface{}) (string, error)
	Decrypt(ctx context.Context, keyName string, params map[string]interface{}) (string, error)
}

ServiceVault interface

func NewBasicService

func NewBasicService(client clientVault.Client) ServiceVault

NewBasicService instantiates ServiceVault

Jump to

Keyboard shortcuts

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