Documentation ¶
Index ¶
- func MakeCreateKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint
- func MakeDecryptEndpoint(svc service.ServiceVault) endpoint.Endpoint
- func MakeEncryptEndpoint(svc service.ServiceVault) endpoint.Endpoint
- func MakeEndpointTracingMiddleware(tracer stdopentracing.Tracer, operationName string) endpoint.Middleware
- func MakeExportKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint
- func MakeReadKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint
- func MakeWriteKeyEndpoint(svc service.ServiceVault) endpoint.Endpoint
- type CreatekeyRequest
- type CreatekeyResponse
- type DecryptRequest
- type DecryptResponse
- type EncryptRequest
- type EncryptResponse
- type ExportkeyRequest
- type ExportkeyResponse
- type ReadkeyRequest
- type ReadkeyResponse
- type WritekeyRequest
- type WritekeyResponse
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 ¶
ReadkeyResponse format
type WritekeyRequest ¶
WritekeyRequest format
type WritekeyResponse ¶
type WritekeyResponse struct {
Err string `json:"err,omitempty"` // errors don't define JSON marshaling
}
WritekeyResponse format