Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodCallEnclave = "CallEnclave" MaxCallEnclaveResponseTime = 5 * time.Second MaxCallEnclaveRetries = 15 CallEnclaveRetryInterval = 1 * time.Second )
Constants related to the GetDiff method.
View Source
const KeyManagerProtocolID = "keymanager"
KeyManagerProtocolID is a unique protocol identifier for the keymanager protocol.
Variables ¶
View Source
var KeyManagerProtocolVersion = version.Version{Major: 1, Minor: 0, Patch: 0}
KeyManagerProtocolVersion is the supported version of the keymanager protocol.
Functions ¶
Types ¶
type CallEnclaveRequest ¶
type CallEnclaveRequest struct {
Data []byte `json:"data"`
}
CallEnclaveRequest is a CallEnclave request.
type CallEnclaveResponse ¶
type CallEnclaveResponse struct {
Data []byte `json:"data"`
}
CallEnclaveResponse is a response to a CallEnclave request.
type Client ¶
type Client interface { // CallEnclave calls a key manager enclave with the provided data. CallEnclave(ctx context.Context, request *CallEnclaveRequest) (*CallEnclaveResponse, rpc.PeerFeedback, error) // Stop asks the client to stop. Stop() // Initialized returns a channel that gets closed when the client is initialized. Initialized() <-chan struct{} }
Client is a keymanager protocol client.
Click to show internal directories.
Click to hide internal directories.