Documentation
¶
Index ¶
- func RegisterPluginServer(s *grpc.Server, srv PluginServer)
- func RegisterRegistryServer(s *grpc.Server, srv RegistryServer)
- type GetCAKeyAndCertificateReply
- func (*GetCAKeyAndCertificateReply) Descriptor() ([]byte, []int)
- func (m *GetCAKeyAndCertificateReply) GetCertificate() []byte
- func (m *GetCAKeyAndCertificateReply) GetWrappedKey() []byte
- func (*GetCAKeyAndCertificateReply) ProtoMessage()
- func (m *GetCAKeyAndCertificateReply) Reset()
- func (m *GetCAKeyAndCertificateReply) String() string
- func (m *GetCAKeyAndCertificateReply) XXX_DiscardUnknown()
- func (m *GetCAKeyAndCertificateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCAKeyAndCertificateReply) XXX_Merge(src proto.Message)
- func (m *GetCAKeyAndCertificateReply) XXX_Size() int
- func (m *GetCAKeyAndCertificateReply) XXX_Unmarshal(b []byte) error
- type GetCAKeyAndCertificateRequest
- func (*GetCAKeyAndCertificateRequest) Descriptor() ([]byte, []int)
- func (m *GetCAKeyAndCertificateRequest) GetPublicKey() []byte
- func (m *GetCAKeyAndCertificateRequest) GetQuote() []byte
- func (m *GetCAKeyAndCertificateRequest) GetSignerName() string
- func (*GetCAKeyAndCertificateRequest) ProtoMessage()
- func (m *GetCAKeyAndCertificateRequest) Reset()
- func (m *GetCAKeyAndCertificateRequest) String() string
- func (m *GetCAKeyAndCertificateRequest) XXX_DiscardUnknown()
- func (m *GetCAKeyAndCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCAKeyAndCertificateRequest) XXX_Merge(src proto.Message)
- func (m *GetCAKeyAndCertificateRequest) XXX_Size() int
- func (m *GetCAKeyAndCertificateRequest) XXX_Unmarshal(b []byte) error
- type PluginClient
- type PluginServer
- type RegisterKeyServerReply
- func (*RegisterKeyServerReply) Descriptor() ([]byte, []int)
- func (*RegisterKeyServerReply) ProtoMessage()
- func (m *RegisterKeyServerReply) Reset()
- func (m *RegisterKeyServerReply) String() string
- func (m *RegisterKeyServerReply) XXX_DiscardUnknown()
- func (m *RegisterKeyServerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterKeyServerReply) XXX_Merge(src proto.Message)
- func (m *RegisterKeyServerReply) XXX_Size() int
- func (m *RegisterKeyServerReply) XXX_Unmarshal(b []byte) error
- type RegisterPluginRequest
- func (*RegisterPluginRequest) Descriptor() ([]byte, []int)
- func (m *RegisterPluginRequest) GetAddress() string
- func (m *RegisterPluginRequest) GetName() string
- func (*RegisterPluginRequest) ProtoMessage()
- func (m *RegisterPluginRequest) Reset()
- func (m *RegisterPluginRequest) String() string
- func (m *RegisterPluginRequest) XXX_DiscardUnknown()
- func (m *RegisterPluginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterPluginRequest) XXX_Merge(src proto.Message)
- func (m *RegisterPluginRequest) XXX_Size() int
- func (m *RegisterPluginRequest) XXX_Unmarshal(b []byte) error
- type RegistryClient
- type RegistryServer
- type ValidateQuoteReply
- func (*ValidateQuoteReply) Descriptor() ([]byte, []int)
- func (m *ValidateQuoteReply) GetMessage() string
- func (m *ValidateQuoteReply) GetResult() bool
- func (*ValidateQuoteReply) ProtoMessage()
- func (m *ValidateQuoteReply) Reset()
- func (m *ValidateQuoteReply) String() string
- func (m *ValidateQuoteReply) XXX_DiscardUnknown()
- func (m *ValidateQuoteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidateQuoteReply) XXX_Merge(src proto.Message)
- func (m *ValidateQuoteReply) XXX_Size() int
- func (m *ValidateQuoteReply) XXX_Unmarshal(b []byte) error
- type ValidateQuoteRequest
- func (*ValidateQuoteRequest) Descriptor() ([]byte, []int)
- func (m *ValidateQuoteRequest) GetPublicKey() []byte
- func (m *ValidateQuoteRequest) GetQuote() []byte
- func (m *ValidateQuoteRequest) GetSignerName() string
- func (*ValidateQuoteRequest) ProtoMessage()
- func (m *ValidateQuoteRequest) Reset()
- func (m *ValidateQuoteRequest) String() string
- func (m *ValidateQuoteRequest) XXX_DiscardUnknown()
- func (m *ValidateQuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidateQuoteRequest) XXX_Merge(src proto.Message)
- func (m *ValidateQuoteRequest) XXX_Size() int
- func (m *ValidateQuoteRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPluginServer ¶
func RegisterPluginServer(s *grpc.Server, srv PluginServer)
func RegisterRegistryServer ¶
func RegisterRegistryServer(s *grpc.Server, srv RegistryServer)
Types ¶
type GetCAKeyAndCertificateReply ¶
type GetCAKeyAndCertificateReply struct { // The CA private key(PWK) is wrapped with a symmetric key(SWK) // that was wrapped with the given publicKey. Both the SWK and // PWK are concatenated and returned as single base64 encoded block. WrappedKey []byte `protobuf:"bytes,1,opt,name=wrappedKey,proto3" json:"wrappedKey,omitempty"` // base64 encoded PEM certificate Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCAKeyAndCertificateReply) Descriptor ¶
func (*GetCAKeyAndCertificateReply) Descriptor() ([]byte, []int)
func (*GetCAKeyAndCertificateReply) GetCertificate ¶
func (m *GetCAKeyAndCertificateReply) GetCertificate() []byte
func (*GetCAKeyAndCertificateReply) GetWrappedKey ¶
func (m *GetCAKeyAndCertificateReply) GetWrappedKey() []byte
func (*GetCAKeyAndCertificateReply) ProtoMessage ¶
func (*GetCAKeyAndCertificateReply) ProtoMessage()
func (*GetCAKeyAndCertificateReply) Reset ¶
func (m *GetCAKeyAndCertificateReply) Reset()
func (*GetCAKeyAndCertificateReply) String ¶
func (m *GetCAKeyAndCertificateReply) String() string
func (*GetCAKeyAndCertificateReply) XXX_DiscardUnknown ¶
func (m *GetCAKeyAndCertificateReply) XXX_DiscardUnknown()
func (*GetCAKeyAndCertificateReply) XXX_Marshal ¶
func (m *GetCAKeyAndCertificateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCAKeyAndCertificateReply) XXX_Merge ¶
func (m *GetCAKeyAndCertificateReply) XXX_Merge(src proto.Message)
func (*GetCAKeyAndCertificateReply) XXX_Size ¶
func (m *GetCAKeyAndCertificateReply) XXX_Size() int
func (*GetCAKeyAndCertificateReply) XXX_Unmarshal ¶
func (m *GetCAKeyAndCertificateReply) XXX_Unmarshal(b []byte) error
type GetCAKeyAndCertificateRequest ¶
type GetCAKeyAndCertificateRequest struct { // CA signer name SignerName string `protobuf:"bytes,1,opt,name=signerName,proto3" json:"signerName,omitempty"` // base64 encoded public key used for generating the quote PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // base64 encoded SGX Quote Quote []byte `protobuf:"bytes,3,opt,name=quote,proto3" json:"quote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCAKeyAndCertificateRequest) Descriptor ¶
func (*GetCAKeyAndCertificateRequest) Descriptor() ([]byte, []int)
func (*GetCAKeyAndCertificateRequest) GetPublicKey ¶
func (m *GetCAKeyAndCertificateRequest) GetPublicKey() []byte
func (*GetCAKeyAndCertificateRequest) GetQuote ¶
func (m *GetCAKeyAndCertificateRequest) GetQuote() []byte
func (*GetCAKeyAndCertificateRequest) GetSignerName ¶
func (m *GetCAKeyAndCertificateRequest) GetSignerName() string
func (*GetCAKeyAndCertificateRequest) ProtoMessage ¶
func (*GetCAKeyAndCertificateRequest) ProtoMessage()
func (*GetCAKeyAndCertificateRequest) Reset ¶
func (m *GetCAKeyAndCertificateRequest) Reset()
func (*GetCAKeyAndCertificateRequest) String ¶
func (m *GetCAKeyAndCertificateRequest) String() string
func (*GetCAKeyAndCertificateRequest) XXX_DiscardUnknown ¶
func (m *GetCAKeyAndCertificateRequest) XXX_DiscardUnknown()
func (*GetCAKeyAndCertificateRequest) XXX_Marshal ¶
func (m *GetCAKeyAndCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCAKeyAndCertificateRequest) XXX_Merge ¶
func (m *GetCAKeyAndCertificateRequest) XXX_Merge(src proto.Message)
func (*GetCAKeyAndCertificateRequest) XXX_Size ¶
func (m *GetCAKeyAndCertificateRequest) XXX_Size() int
func (*GetCAKeyAndCertificateRequest) XXX_Unmarshal ¶
func (m *GetCAKeyAndCertificateRequest) XXX_Unmarshal(b []byte) error
type PluginClient ¶
type PluginClient interface { // ValidateQuote validates the given SGX quote ValidateQuote(ctx context.Context, in *ValidateQuoteRequest, opts ...grpc.CallOption) (*ValidateQuoteReply, error) // GetCAKeyCertificate retrieves the stored CA key and certificate at the key-manager // for given signer signerName. // On success, returns the key and certificate. // Otherwise, appropriate error gets returned. GetCAKeyAndCertificate(ctx context.Context, in *GetCAKeyAndCertificateRequest, opts ...grpc.CallOption) (*GetCAKeyAndCertificateReply, error) }
PluginClient is the client API for Plugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPluginClient ¶
func NewPluginClient(cc *grpc.ClientConn) PluginClient
type PluginServer ¶
type PluginServer interface { // ValidateQuote validates the given SGX quote ValidateQuote(context.Context, *ValidateQuoteRequest) (*ValidateQuoteReply, error) // GetCAKeyCertificate retrieves the stored CA key and certificate at the key-manager // for given signer signerName. // On success, returns the key and certificate. // Otherwise, appropriate error gets returned. GetCAKeyAndCertificate(context.Context, *GetCAKeyAndCertificateRequest) (*GetCAKeyAndCertificateReply, error) }
PluginServer is the server API for Plugin service.
type RegisterKeyServerReply ¶
type RegisterKeyServerReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterKeyServerReply) Descriptor ¶
func (*RegisterKeyServerReply) Descriptor() ([]byte, []int)
func (*RegisterKeyServerReply) ProtoMessage ¶
func (*RegisterKeyServerReply) ProtoMessage()
func (*RegisterKeyServerReply) Reset ¶
func (m *RegisterKeyServerReply) Reset()
func (*RegisterKeyServerReply) String ¶
func (m *RegisterKeyServerReply) String() string
func (*RegisterKeyServerReply) XXX_DiscardUnknown ¶
func (m *RegisterKeyServerReply) XXX_DiscardUnknown()
func (*RegisterKeyServerReply) XXX_Marshal ¶
func (m *RegisterKeyServerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterKeyServerReply) XXX_Merge ¶
func (m *RegisterKeyServerReply) XXX_Merge(src proto.Message)
func (*RegisterKeyServerReply) XXX_Size ¶
func (m *RegisterKeyServerReply) XXX_Size() int
func (*RegisterKeyServerReply) XXX_Unmarshal ¶
func (m *RegisterKeyServerReply) XXX_Unmarshal(b []byte) error
type RegisterPluginRequest ¶
type RegisterPluginRequest struct { // Uniq name of the server Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Server socket address to register; // This server has to offers Plugin functionality // at this socket. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterPluginRequest) Descriptor ¶
func (*RegisterPluginRequest) Descriptor() ([]byte, []int)
func (*RegisterPluginRequest) GetAddress ¶
func (m *RegisterPluginRequest) GetAddress() string
func (*RegisterPluginRequest) GetName ¶
func (m *RegisterPluginRequest) GetName() string
func (*RegisterPluginRequest) ProtoMessage ¶
func (*RegisterPluginRequest) ProtoMessage()
func (*RegisterPluginRequest) Reset ¶
func (m *RegisterPluginRequest) Reset()
func (*RegisterPluginRequest) String ¶
func (m *RegisterPluginRequest) String() string
func (*RegisterPluginRequest) XXX_DiscardUnknown ¶
func (m *RegisterPluginRequest) XXX_DiscardUnknown()
func (*RegisterPluginRequest) XXX_Marshal ¶
func (m *RegisterPluginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterPluginRequest) XXX_Merge ¶
func (m *RegisterPluginRequest) XXX_Merge(src proto.Message)
func (*RegisterPluginRequest) XXX_Size ¶
func (m *RegisterPluginRequest) XXX_Size() int
func (*RegisterPluginRequest) XXX_Unmarshal ¶
func (m *RegisterPluginRequest) XXX_Unmarshal(b []byte) error
type RegistryClient ¶
type RegistryClient interface {
RegisterPlugin(ctx context.Context, in *RegisterPluginRequest, opts ...grpc.CallOption) (*RegisterKeyServerReply, error)
}
RegistryClient is the client API for Registry service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRegistryClient ¶
func NewRegistryClient(cc *grpc.ClientConn) RegistryClient
type RegistryServer ¶
type RegistryServer interface {
RegisterPlugin(context.Context, *RegisterPluginRequest) (*RegisterKeyServerReply, error)
}
RegistryServer is the server API for Registry service.
type ValidateQuoteReply ¶
type ValidateQuoteReply struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` // Failure message in case of provided quote is invalid Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValidateQuoteReply) Descriptor ¶
func (*ValidateQuoteReply) Descriptor() ([]byte, []int)
func (*ValidateQuoteReply) GetMessage ¶
func (m *ValidateQuoteReply) GetMessage() string
func (*ValidateQuoteReply) GetResult ¶
func (m *ValidateQuoteReply) GetResult() bool
func (*ValidateQuoteReply) ProtoMessage ¶
func (*ValidateQuoteReply) ProtoMessage()
func (*ValidateQuoteReply) Reset ¶
func (m *ValidateQuoteReply) Reset()
func (*ValidateQuoteReply) String ¶
func (m *ValidateQuoteReply) String() string
func (*ValidateQuoteReply) XXX_DiscardUnknown ¶
func (m *ValidateQuoteReply) XXX_DiscardUnknown()
func (*ValidateQuoteReply) XXX_Marshal ¶
func (m *ValidateQuoteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidateQuoteReply) XXX_Merge ¶
func (m *ValidateQuoteReply) XXX_Merge(src proto.Message)
func (*ValidateQuoteReply) XXX_Size ¶
func (m *ValidateQuoteReply) XXX_Size() int
func (*ValidateQuoteReply) XXX_Unmarshal ¶
func (m *ValidateQuoteReply) XXX_Unmarshal(b []byte) error
type ValidateQuoteRequest ¶
type ValidateQuoteRequest struct { // CA signer name SignerName string `protobuf:"bytes,1,opt,name=signerName,proto3" json:"signerName,omitempty"` // base64 encoded public key used for generating the quote PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // base64 encoded SGX Quote Quote []byte `protobuf:"bytes,3,opt,name=quote,proto3" json:"quote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValidateQuoteRequest) Descriptor ¶
func (*ValidateQuoteRequest) Descriptor() ([]byte, []int)
func (*ValidateQuoteRequest) GetPublicKey ¶
func (m *ValidateQuoteRequest) GetPublicKey() []byte
func (*ValidateQuoteRequest) GetQuote ¶
func (m *ValidateQuoteRequest) GetQuote() []byte
func (*ValidateQuoteRequest) GetSignerName ¶
func (m *ValidateQuoteRequest) GetSignerName() string
func (*ValidateQuoteRequest) ProtoMessage ¶
func (*ValidateQuoteRequest) ProtoMessage()
func (*ValidateQuoteRequest) Reset ¶
func (m *ValidateQuoteRequest) Reset()
func (*ValidateQuoteRequest) String ¶
func (m *ValidateQuoteRequest) String() string
func (*ValidateQuoteRequest) XXX_DiscardUnknown ¶
func (m *ValidateQuoteRequest) XXX_DiscardUnknown()
func (*ValidateQuoteRequest) XXX_Marshal ¶
func (m *ValidateQuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidateQuoteRequest) XXX_Merge ¶
func (m *ValidateQuoteRequest) XXX_Merge(src proto.Message)
func (*ValidateQuoteRequest) XXX_Size ¶
func (m *ValidateQuoteRequest) XXX_Size() int
func (*ValidateQuoteRequest) XXX_Unmarshal ¶
func (m *ValidateQuoteRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.