endpoints

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: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateKeyEndpoint

func MakeCreateKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint

MakeCreateKeyEndpoint calls the ServiceVault in order to process the create key request

func MakeDecryptEndpoint

func MakeDecryptEndpoint(svc service.ServiceVault) endpoint.Endpoint

MakeDecryptEndpoint calls the ServiceVault in order to process the decrypt request

func MakeEncryptEndpoint

func MakeEncryptEndpoint(svc service.ServiceVault) endpoint.Endpoint

MakeEncryptEndpoint calls the ServiceVault in order to process the encrypt request

func MakeEndpointTracingMiddleware

func MakeEndpointTracingMiddleware(tracer stdopentracing.Tracer, operationName string) endpoint.Middleware

MakeEndpointTracingMiddleware wraps Endpoint with a tracer

func MakeExportKeyEndpoint

func MakeExportKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint

MakeExportKeyEndpoint calls the ServiceVault in order to process the export key request

func MakeReadKeyEndpoint

func MakeReadKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint

MakeReadKeyEndpoint calls the ServiceVault in order to process the read key request

func MakeWriteKeyEndpoint

func MakeWriteKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint

MakeWriteKeyEndpoint calls the ServiceVault in order to process the write key request

Types

type CreatekeyRequest

type CreatekeyRequest struct {
	KeyName    string                 `json:"keyname"`
	Parameters map[string]interface{} `json:"params"`
}

CreatekeyRequest format

type CreatekeyResponse

type CreatekeyResponse struct {
	Err string `json:"err,omitempty"`
}

CreatekeyResponse format

type DecryptRequest

type DecryptRequest struct {
	Parameters map[string]interface{} `json:"params"`
	KeyName    string                 `json:"keyname"`
}

DecryptRequest format

type DecryptResponse

type DecryptResponse struct {
	Plaintext string `json:"plaintext"`
	Err       string `json:"err,omitempty"`
}

DecryptResponse format

type EncryptRequest

type EncryptRequest struct {
	Parameters map[string]interface{} `json:"params"`
	KeyName    string                 `json:"keyname"`
}

EncryptRequest format

type EncryptResponse

type EncryptResponse struct {
	Ciphertext string `json:"ciphertext"`
	Err        string `json:"err,omitempty"`
}

EncryptResponse format

type ExportkeyRequest

type ExportkeyRequest struct {
	KeyPath string `json:"keypath"`
}

ExportkeyRequest format

type ExportkeyResponse

type ExportkeyResponse struct {
	KeyValue map[string]interface{} `json:"keys"`
	Err      string                 `json:"err,omitempty"`
}

ExportkeyResponse format

type ReadkeyRequest

type ReadkeyRequest struct {
	PathKey string `json:"pathk"`
}

ReadkeyRequest format

type ReadkeyResponse

type ReadkeyResponse struct {
	KeyValue string `json:"key"`
	Err      string `json:"err,omitempty"`
}

ReadkeyResponse format

type WritekeyRequest

type WritekeyRequest struct {
	PathKey  string `json:"pathk"`
	KeyValue string `json:"key"`
}

WritekeyRequest format

type WritekeyResponse

type WritekeyResponse struct {
	Err string `json:"err,omitempty"` // errors don't define JSON marshaling
}

WritekeyResponse format

Jump to

Keyboard shortcuts

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