Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.