Documentation ¶
Overview ¶
Package encryption is a generated protocol buffer package.
It is generated from these files:
encryption.proto
It has these top-level messages:
Export Import KeyInfo Key AddKeyRequest AddKeyResponse GetKeyRequest GetKeyResponse AdminListKeysRequest AdminListKeysResponse AdminDeleteKeyRequest AdminDeleteKeyResponse AdminExportKeyRequest AdminExportKeyResponse AdminImportKeyRequest AdminImportKeyResponse AdminCreateKeyRequest AdminCreateKeyResponse Params NodeKey DeleteNodeRequest DeleteNodeResponse SetNodeParamsRequest SetNodeParamsResponse GetNodeKeyRequest GetNodeKeyResponse SetNodeKeyRequest SetNodeKeyResponse DeleteNodeKeyRequest DeleteNodeKeyResponse DeleteNodeSharedKeyRequest DeleteNodeSharedKeyResponse
Package encryption is a generated protocol buffer package.
It is generated from these files:
encryption.proto
It has these top-level messages:
Export Import KeyInfo Key AddKeyRequest AddKeyResponse GetKeyRequest GetKeyResponse AdminListKeysRequest AdminListKeysResponse AdminDeleteKeyRequest AdminDeleteKeyResponse AdminExportKeyRequest AdminExportKeyResponse AdminImportKeyRequest AdminImportKeyResponse AdminCreateKeyRequest AdminCreateKeyResponse Params NodeKey DeleteNodeRequest DeleteNodeResponse SetNodeParamsRequest SetNodeParamsResponse GetNodeKeyRequest GetNodeKeyResponse SetNodeKeyRequest SetNodeKeyResponse DeleteNodeKeyRequest DeleteNodeKeyResponse DeleteNodeSharedKeyRequest DeleteNodeSharedKeyResponse
Index ¶
- func RegisterNodeKeyManagerHandler(s server.Server, hdlr NodeKeyManagerHandler, opts ...server.HandlerOption)
- func RegisterUserKeyStoreHandler(s server.Server, hdlr UserKeyStoreHandler, opts ...server.HandlerOption)
- type AddKeyRequest
- type AddKeyResponse
- type AdminCreateKeyRequest
- type AdminCreateKeyResponse
- type AdminDeleteKeyRequest
- type AdminDeleteKeyResponse
- type AdminExportKeyRequest
- type AdminExportKeyResponse
- type AdminImportKeyRequest
- func (*AdminImportKeyRequest) Descriptor() ([]byte, []int)
- func (m *AdminImportKeyRequest) GetKey() *Key
- func (m *AdminImportKeyRequest) GetOverride() bool
- func (m *AdminImportKeyRequest) GetStrPassword() string
- func (*AdminImportKeyRequest) ProtoMessage()
- func (m *AdminImportKeyRequest) Reset()
- func (m *AdminImportKeyRequest) String() string
- type AdminImportKeyResponse
- type AdminListKeysRequest
- type AdminListKeysResponse
- type DeleteNodeKeyRequest
- type DeleteNodeKeyResponse
- type DeleteNodeRequest
- type DeleteNodeResponse
- type DeleteNodeSharedKeyRequest
- func (*DeleteNodeSharedKeyRequest) Descriptor() ([]byte, []int)
- func (m *DeleteNodeSharedKeyRequest) GetNodeId() string
- func (m *DeleteNodeSharedKeyRequest) GetOwnerId() string
- func (m *DeleteNodeSharedKeyRequest) GetUsers() []string
- func (*DeleteNodeSharedKeyRequest) ProtoMessage()
- func (m *DeleteNodeSharedKeyRequest) Reset()
- func (m *DeleteNodeSharedKeyRequest) String() string
- type DeleteNodeSharedKeyResponse
- type Export
- type GetKeyRequest
- type GetKeyResponse
- type GetNodeKeyRequest
- type GetNodeKeyResponse
- func (*GetNodeKeyResponse) Descriptor() ([]byte, []int)
- func (m *GetNodeKeyResponse) GetBlockSize() int32
- func (m *GetNodeKeyResponse) GetEncryptedKey() []byte
- func (m *GetNodeKeyResponse) GetNonce() []byte
- func (m *GetNodeKeyResponse) GetOwnerId() string
- func (*GetNodeKeyResponse) ProtoMessage()
- func (m *GetNodeKeyResponse) Reset()
- func (m *GetNodeKeyResponse) String() string
- type Import
- type Key
- func (*Key) Descriptor() ([]byte, []int)
- func (m *Key) GetContent() string
- func (m *Key) GetCreationDate() int32
- func (m *Key) GetID() string
- func (m *Key) GetInfo() *KeyInfo
- func (m *Key) GetLabel() string
- func (m *Key) GetOwner() string
- func (*Key) ProtoMessage()
- func (m *Key) Reset()
- func (m *Key) String() string
- type KeyInfo
- type NodeKey
- func (*NodeKey) Descriptor() ([]byte, []int)
- func (m *NodeKey) GetBlockSize() int32
- func (m *NodeKey) GetData() []byte
- func (m *NodeKey) GetNodeId() string
- func (m *NodeKey) GetNonce() []byte
- func (m *NodeKey) GetOwnerId() string
- func (m *NodeKey) GetUserId() string
- func (*NodeKey) ProtoMessage()
- func (m *NodeKey) Reset()
- func (m *NodeKey) String() string
- type NodeKeyManager
- func (h *NodeKeyManager) DeleteNode(ctx context.Context, in *DeleteNodeRequest, out *DeleteNodeResponse) error
- func (h *NodeKeyManager) DeleteNodeKey(ctx context.Context, in *DeleteNodeKeyRequest, out *DeleteNodeKeyResponse) error
- func (h *NodeKeyManager) DeleteNodeSharedKey(ctx context.Context, in *DeleteNodeSharedKeyRequest, ...) error
- func (h *NodeKeyManager) GetNodeKey(ctx context.Context, in *GetNodeKeyRequest, out *GetNodeKeyResponse) error
- func (h *NodeKeyManager) SetNodeKey(ctx context.Context, in *SetNodeKeyRequest, out *SetNodeKeyResponse) error
- func (h *NodeKeyManager) SetNodeParams(ctx context.Context, in *SetNodeParamsRequest, out *SetNodeParamsResponse) error
- type NodeKeyManagerClient
- type NodeKeyManagerHandler
- type Params
- type SetNodeKeyRequest
- type SetNodeKeyResponse
- type SetNodeParamsRequest
- type SetNodeParamsResponse
- type UserKeyStore
- func (h *UserKeyStore) AddKey(ctx context.Context, in *AddKeyRequest, out *AddKeyResponse) error
- func (h *UserKeyStore) AdminCreateKey(ctx context.Context, in *AdminCreateKeyRequest, out *AdminCreateKeyResponse) error
- func (h *UserKeyStore) AdminDeleteKey(ctx context.Context, in *AdminDeleteKeyRequest, out *AdminDeleteKeyResponse) error
- func (h *UserKeyStore) AdminExportKey(ctx context.Context, in *AdminExportKeyRequest, out *AdminExportKeyResponse) error
- func (h *UserKeyStore) AdminImportKey(ctx context.Context, in *AdminImportKeyRequest, out *AdminImportKeyResponse) error
- func (h *UserKeyStore) AdminListKeys(ctx context.Context, in *AdminListKeysRequest, out *AdminListKeysResponse) error
- func (h *UserKeyStore) GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error
- type UserKeyStoreClient
- type UserKeyStoreHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNodeKeyManagerHandler ¶
func RegisterNodeKeyManagerHandler(s server.Server, hdlr NodeKeyManagerHandler, opts ...server.HandlerOption)
func RegisterUserKeyStoreHandler ¶
func RegisterUserKeyStoreHandler(s server.Server, hdlr UserKeyStoreHandler, opts ...server.HandlerOption)
Types ¶
type AddKeyRequest ¶
type AddKeyRequest struct { Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"` StrPassword string `protobuf:"bytes,2,opt,name=StrPassword" json:"StrPassword,omitempty"` }
func (*AddKeyRequest) Descriptor ¶
func (*AddKeyRequest) Descriptor() ([]byte, []int)
func (*AddKeyRequest) GetKey ¶
func (m *AddKeyRequest) GetKey() *Key
func (*AddKeyRequest) GetStrPassword ¶
func (m *AddKeyRequest) GetStrPassword() string
func (*AddKeyRequest) ProtoMessage ¶
func (*AddKeyRequest) ProtoMessage()
func (*AddKeyRequest) Reset ¶
func (m *AddKeyRequest) Reset()
func (*AddKeyRequest) String ¶
func (m *AddKeyRequest) String() string
type AddKeyResponse ¶
type AddKeyResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (*AddKeyResponse) Descriptor ¶
func (*AddKeyResponse) Descriptor() ([]byte, []int)
func (*AddKeyResponse) GetSuccess ¶
func (m *AddKeyResponse) GetSuccess() bool
func (*AddKeyResponse) ProtoMessage ¶
func (*AddKeyResponse) ProtoMessage()
func (*AddKeyResponse) Reset ¶
func (m *AddKeyResponse) Reset()
func (*AddKeyResponse) String ¶
func (m *AddKeyResponse) String() string
type AdminCreateKeyRequest ¶
type AdminCreateKeyRequest struct { KeyID string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"` Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` }
func (*AdminCreateKeyRequest) Descriptor ¶
func (*AdminCreateKeyRequest) Descriptor() ([]byte, []int)
func (*AdminCreateKeyRequest) GetKeyID ¶
func (m *AdminCreateKeyRequest) GetKeyID() string
func (*AdminCreateKeyRequest) GetLabel ¶
func (m *AdminCreateKeyRequest) GetLabel() string
func (*AdminCreateKeyRequest) ProtoMessage ¶
func (*AdminCreateKeyRequest) ProtoMessage()
func (*AdminCreateKeyRequest) Reset ¶
func (m *AdminCreateKeyRequest) Reset()
func (*AdminCreateKeyRequest) String ¶
func (m *AdminCreateKeyRequest) String() string
type AdminCreateKeyResponse ¶
type AdminCreateKeyResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (*AdminCreateKeyResponse) Descriptor ¶
func (*AdminCreateKeyResponse) Descriptor() ([]byte, []int)
func (*AdminCreateKeyResponse) GetSuccess ¶
func (m *AdminCreateKeyResponse) GetSuccess() bool
func (*AdminCreateKeyResponse) ProtoMessage ¶
func (*AdminCreateKeyResponse) ProtoMessage()
func (*AdminCreateKeyResponse) Reset ¶
func (m *AdminCreateKeyResponse) Reset()
func (*AdminCreateKeyResponse) String ¶
func (m *AdminCreateKeyResponse) String() string
type AdminDeleteKeyRequest ¶
type AdminDeleteKeyRequest struct {
KeyID string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"`
}
func (*AdminDeleteKeyRequest) Descriptor ¶
func (*AdminDeleteKeyRequest) Descriptor() ([]byte, []int)
func (*AdminDeleteKeyRequest) GetKeyID ¶
func (m *AdminDeleteKeyRequest) GetKeyID() string
func (*AdminDeleteKeyRequest) ProtoMessage ¶
func (*AdminDeleteKeyRequest) ProtoMessage()
func (*AdminDeleteKeyRequest) Reset ¶
func (m *AdminDeleteKeyRequest) Reset()
func (*AdminDeleteKeyRequest) String ¶
func (m *AdminDeleteKeyRequest) String() string
type AdminDeleteKeyResponse ¶
type AdminDeleteKeyResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (*AdminDeleteKeyResponse) Descriptor ¶
func (*AdminDeleteKeyResponse) Descriptor() ([]byte, []int)
func (*AdminDeleteKeyResponse) GetSuccess ¶
func (m *AdminDeleteKeyResponse) GetSuccess() bool
func (*AdminDeleteKeyResponse) ProtoMessage ¶
func (*AdminDeleteKeyResponse) ProtoMessage()
func (*AdminDeleteKeyResponse) Reset ¶
func (m *AdminDeleteKeyResponse) Reset()
func (*AdminDeleteKeyResponse) String ¶
func (m *AdminDeleteKeyResponse) String() string
type AdminExportKeyRequest ¶
type AdminExportKeyRequest struct { KeyID string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"` StrPassword string `protobuf:"bytes,2,opt,name=StrPassword" json:"StrPassword,omitempty"` }
func (*AdminExportKeyRequest) Descriptor ¶
func (*AdminExportKeyRequest) Descriptor() ([]byte, []int)
func (*AdminExportKeyRequest) GetKeyID ¶
func (m *AdminExportKeyRequest) GetKeyID() string
func (*AdminExportKeyRequest) GetStrPassword ¶
func (m *AdminExportKeyRequest) GetStrPassword() string
func (*AdminExportKeyRequest) ProtoMessage ¶
func (*AdminExportKeyRequest) ProtoMessage()
func (*AdminExportKeyRequest) Reset ¶
func (m *AdminExportKeyRequest) Reset()
func (*AdminExportKeyRequest) String ¶
func (m *AdminExportKeyRequest) String() string
type AdminExportKeyResponse ¶
type AdminExportKeyResponse struct {
Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
}
func (*AdminExportKeyResponse) Descriptor ¶
func (*AdminExportKeyResponse) Descriptor() ([]byte, []int)
func (*AdminExportKeyResponse) GetKey ¶
func (m *AdminExportKeyResponse) GetKey() *Key
func (*AdminExportKeyResponse) ProtoMessage ¶
func (*AdminExportKeyResponse) ProtoMessage()
func (*AdminExportKeyResponse) Reset ¶
func (m *AdminExportKeyResponse) Reset()
func (*AdminExportKeyResponse) String ¶
func (m *AdminExportKeyResponse) String() string
type AdminImportKeyRequest ¶
type AdminImportKeyRequest struct { Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"` StrPassword string `protobuf:"bytes,2,opt,name=StrPassword" json:"StrPassword,omitempty"` Override bool `protobuf:"varint,3,opt,name=Override" json:"Override,omitempty"` }
func (*AdminImportKeyRequest) Descriptor ¶
func (*AdminImportKeyRequest) Descriptor() ([]byte, []int)
func (*AdminImportKeyRequest) GetKey ¶
func (m *AdminImportKeyRequest) GetKey() *Key
func (*AdminImportKeyRequest) GetOverride ¶
func (m *AdminImportKeyRequest) GetOverride() bool
func (*AdminImportKeyRequest) GetStrPassword ¶
func (m *AdminImportKeyRequest) GetStrPassword() string
func (*AdminImportKeyRequest) ProtoMessage ¶
func (*AdminImportKeyRequest) ProtoMessage()
func (*AdminImportKeyRequest) Reset ¶
func (m *AdminImportKeyRequest) Reset()
func (*AdminImportKeyRequest) String ¶
func (m *AdminImportKeyRequest) String() string
type AdminImportKeyResponse ¶
type AdminImportKeyResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (*AdminImportKeyResponse) Descriptor ¶
func (*AdminImportKeyResponse) Descriptor() ([]byte, []int)
func (*AdminImportKeyResponse) GetSuccess ¶
func (m *AdminImportKeyResponse) GetSuccess() bool
func (*AdminImportKeyResponse) ProtoMessage ¶
func (*AdminImportKeyResponse) ProtoMessage()
func (*AdminImportKeyResponse) Reset ¶
func (m *AdminImportKeyResponse) Reset()
func (*AdminImportKeyResponse) String ¶
func (m *AdminImportKeyResponse) String() string
type AdminListKeysRequest ¶
type AdminListKeysRequest struct { }
func (*AdminListKeysRequest) Descriptor ¶
func (*AdminListKeysRequest) Descriptor() ([]byte, []int)
func (*AdminListKeysRequest) ProtoMessage ¶
func (*AdminListKeysRequest) ProtoMessage()
func (*AdminListKeysRequest) Reset ¶
func (m *AdminListKeysRequest) Reset()
func (*AdminListKeysRequest) String ¶
func (m *AdminListKeysRequest) String() string
type AdminListKeysResponse ¶
type AdminListKeysResponse struct {
Keys []*Key `protobuf:"bytes,1,rep,name=Keys" json:"Keys,omitempty"`
}
func (*AdminListKeysResponse) Descriptor ¶
func (*AdminListKeysResponse) Descriptor() ([]byte, []int)
func (*AdminListKeysResponse) GetKeys ¶
func (m *AdminListKeysResponse) GetKeys() []*Key
func (*AdminListKeysResponse) ProtoMessage ¶
func (*AdminListKeysResponse) ProtoMessage()
func (*AdminListKeysResponse) Reset ¶
func (m *AdminListKeysResponse) Reset()
func (*AdminListKeysResponse) String ¶
func (m *AdminListKeysResponse) String() string
type DeleteNodeKeyRequest ¶
type DeleteNodeKeyRequest struct { NodeId string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"` Users []string `protobuf:"bytes,3,rep,name=Users" json:"Users,omitempty"` }
func (*DeleteNodeKeyRequest) Descriptor ¶
func (*DeleteNodeKeyRequest) Descriptor() ([]byte, []int)
func (*DeleteNodeKeyRequest) GetNodeId ¶
func (m *DeleteNodeKeyRequest) GetNodeId() string
func (*DeleteNodeKeyRequest) GetUsers ¶
func (m *DeleteNodeKeyRequest) GetUsers() []string
func (*DeleteNodeKeyRequest) ProtoMessage ¶
func (*DeleteNodeKeyRequest) ProtoMessage()
func (*DeleteNodeKeyRequest) Reset ¶
func (m *DeleteNodeKeyRequest) Reset()
func (*DeleteNodeKeyRequest) String ¶
func (m *DeleteNodeKeyRequest) String() string
type DeleteNodeKeyResponse ¶
type DeleteNodeKeyResponse struct { }
func (*DeleteNodeKeyResponse) Descriptor ¶
func (*DeleteNodeKeyResponse) Descriptor() ([]byte, []int)
func (*DeleteNodeKeyResponse) ProtoMessage ¶
func (*DeleteNodeKeyResponse) ProtoMessage()
func (*DeleteNodeKeyResponse) Reset ¶
func (m *DeleteNodeKeyResponse) Reset()
func (*DeleteNodeKeyResponse) String ¶
func (m *DeleteNodeKeyResponse) String() string
type DeleteNodeRequest ¶
type DeleteNodeRequest struct {
NodeIds []string `protobuf:"bytes,1,rep,name=NodeIds" json:"NodeIds,omitempty"`
}
func (*DeleteNodeRequest) Descriptor ¶
func (*DeleteNodeRequest) Descriptor() ([]byte, []int)
func (*DeleteNodeRequest) GetNodeIds ¶
func (m *DeleteNodeRequest) GetNodeIds() []string
func (*DeleteNodeRequest) ProtoMessage ¶
func (*DeleteNodeRequest) ProtoMessage()
func (*DeleteNodeRequest) Reset ¶
func (m *DeleteNodeRequest) Reset()
func (*DeleteNodeRequest) String ¶
func (m *DeleteNodeRequest) String() string
type DeleteNodeResponse ¶
type DeleteNodeResponse struct { AllDeleted bool `protobuf:"varint,1,opt,name=AllDeleted" json:"AllDeleted,omitempty"` Deleted []string `protobuf:"bytes,2,rep,name=Deleted" json:"Deleted,omitempty"` }
func (*DeleteNodeResponse) Descriptor ¶
func (*DeleteNodeResponse) Descriptor() ([]byte, []int)
func (*DeleteNodeResponse) GetAllDeleted ¶
func (m *DeleteNodeResponse) GetAllDeleted() bool
func (*DeleteNodeResponse) GetDeleted ¶
func (m *DeleteNodeResponse) GetDeleted() []string
func (*DeleteNodeResponse) ProtoMessage ¶
func (*DeleteNodeResponse) ProtoMessage()
func (*DeleteNodeResponse) Reset ¶
func (m *DeleteNodeResponse) Reset()
func (*DeleteNodeResponse) String ¶
func (m *DeleteNodeResponse) String() string
type DeleteNodeSharedKeyRequest ¶
type DeleteNodeSharedKeyRequest struct {}
func (*DeleteNodeSharedKeyRequest) Descriptor ¶
func (*DeleteNodeSharedKeyRequest) Descriptor() ([]byte, []int)
func (*DeleteNodeSharedKeyRequest) GetNodeId ¶
func (m *DeleteNodeSharedKeyRequest) GetNodeId() string
func (*DeleteNodeSharedKeyRequest) GetOwnerId ¶
func (m *DeleteNodeSharedKeyRequest) GetOwnerId() string
func (*DeleteNodeSharedKeyRequest) GetUsers ¶
func (m *DeleteNodeSharedKeyRequest) GetUsers() []string
func (*DeleteNodeSharedKeyRequest) ProtoMessage ¶
func (*DeleteNodeSharedKeyRequest) ProtoMessage()
func (*DeleteNodeSharedKeyRequest) Reset ¶
func (m *DeleteNodeSharedKeyRequest) Reset()
func (*DeleteNodeSharedKeyRequest) String ¶
func (m *DeleteNodeSharedKeyRequest) String() string
type DeleteNodeSharedKeyResponse ¶
type DeleteNodeSharedKeyResponse struct { }
func (*DeleteNodeSharedKeyResponse) Descriptor ¶
func (*DeleteNodeSharedKeyResponse) Descriptor() ([]byte, []int)
func (*DeleteNodeSharedKeyResponse) ProtoMessage ¶
func (*DeleteNodeSharedKeyResponse) ProtoMessage()
func (*DeleteNodeSharedKeyResponse) Reset ¶
func (m *DeleteNodeSharedKeyResponse) Reset()
func (*DeleteNodeSharedKeyResponse) String ¶
func (m *DeleteNodeSharedKeyResponse) String() string
type Export ¶
type Export struct { By string `protobuf:"bytes,1,opt,name=By" json:"By,omitempty"` Date int32 `protobuf:"varint,2,opt,name=Date" json:"Date,omitempty"` }
func (*Export) Descriptor ¶
func (*Export) ProtoMessage ¶
func (*Export) ProtoMessage()
type GetKeyRequest ¶
type GetKeyRequest struct { Owner string `protobuf:"bytes,1,opt,name=Owner" json:"Owner,omitempty"` KeyID string `protobuf:"bytes,2,opt,name=KeyID" json:"KeyID,omitempty"` StrPassword string `protobuf:"bytes,3,opt,name=StrPassword" json:"StrPassword,omitempty"` }
func (*GetKeyRequest) Descriptor ¶
func (*GetKeyRequest) Descriptor() ([]byte, []int)
func (*GetKeyRequest) GetKeyID ¶
func (m *GetKeyRequest) GetKeyID() string
func (*GetKeyRequest) GetOwner ¶
func (m *GetKeyRequest) GetOwner() string
func (*GetKeyRequest) GetStrPassword ¶
func (m *GetKeyRequest) GetStrPassword() string
func (*GetKeyRequest) ProtoMessage ¶
func (*GetKeyRequest) ProtoMessage()
func (*GetKeyRequest) Reset ¶
func (m *GetKeyRequest) Reset()
func (*GetKeyRequest) String ¶
func (m *GetKeyRequest) String() string
type GetKeyResponse ¶
type GetKeyResponse struct {
Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
}
func (*GetKeyResponse) Descriptor ¶
func (*GetKeyResponse) Descriptor() ([]byte, []int)
func (*GetKeyResponse) GetKey ¶
func (m *GetKeyResponse) GetKey() *Key
func (*GetKeyResponse) ProtoMessage ¶
func (*GetKeyResponse) ProtoMessage()
func (*GetKeyResponse) Reset ¶
func (m *GetKeyResponse) Reset()
func (*GetKeyResponse) String ¶
func (m *GetKeyResponse) String() string
type GetNodeKeyRequest ¶
type GetNodeKeyRequest struct { NodeId string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=UserId" json:"UserId,omitempty"` }
func (*GetNodeKeyRequest) Descriptor ¶
func (*GetNodeKeyRequest) Descriptor() ([]byte, []int)
func (*GetNodeKeyRequest) GetNodeId ¶
func (m *GetNodeKeyRequest) GetNodeId() string
func (*GetNodeKeyRequest) GetUserId ¶
func (m *GetNodeKeyRequest) GetUserId() string
func (*GetNodeKeyRequest) ProtoMessage ¶
func (*GetNodeKeyRequest) ProtoMessage()
func (*GetNodeKeyRequest) Reset ¶
func (m *GetNodeKeyRequest) Reset()
func (*GetNodeKeyRequest) String ¶
func (m *GetNodeKeyRequest) String() string
type GetNodeKeyResponse ¶
type GetNodeKeyResponse struct { OwnerId string `protobuf:"bytes,1,opt,name=OwnerId" json:"OwnerId,omitempty"` EncryptedKey []byte `protobuf:"bytes,2,opt,name=EncryptedKey,proto3" json:"EncryptedKey,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"` BlockSize int32 `protobuf:"varint,4,opt,name=BlockSize" json:"BlockSize,omitempty"` }
func (*GetNodeKeyResponse) Descriptor ¶
func (*GetNodeKeyResponse) Descriptor() ([]byte, []int)
func (*GetNodeKeyResponse) GetBlockSize ¶
func (m *GetNodeKeyResponse) GetBlockSize() int32
func (*GetNodeKeyResponse) GetEncryptedKey ¶
func (m *GetNodeKeyResponse) GetEncryptedKey() []byte
func (*GetNodeKeyResponse) GetNonce ¶
func (m *GetNodeKeyResponse) GetNonce() []byte
func (*GetNodeKeyResponse) GetOwnerId ¶
func (m *GetNodeKeyResponse) GetOwnerId() string
func (*GetNodeKeyResponse) ProtoMessage ¶
func (*GetNodeKeyResponse) ProtoMessage()
func (*GetNodeKeyResponse) Reset ¶
func (m *GetNodeKeyResponse) Reset()
func (*GetNodeKeyResponse) String ¶
func (m *GetNodeKeyResponse) String() string
type Import ¶
type Import struct { By string `protobuf:"bytes,1,opt,name=By" json:"By,omitempty"` Date int32 `protobuf:"varint,3,opt,name=Date" json:"Date,omitempty"` }
func (*Import) Descriptor ¶
func (*Import) ProtoMessage ¶
func (*Import) ProtoMessage()
type Key ¶
type Key struct { Owner string `protobuf:"bytes,1,opt,name=Owner" json:"Owner,omitempty"` ID string `protobuf:"bytes,2,opt,name=ID" json:"ID,omitempty"` Label string `protobuf:"bytes,3,opt,name=Label" json:"Label,omitempty"` Content string `protobuf:"bytes,4,opt,name=Content" json:"Content,omitempty"` CreationDate int32 `protobuf:"varint,5,opt,name=CreationDate" json:"CreationDate,omitempty"` Info *KeyInfo `protobuf:"bytes,6,opt,name=Info" json:"Info,omitempty"` }
func (*Key) Descriptor ¶
func (*Key) GetContent ¶
func (*Key) GetCreationDate ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
type KeyInfo ¶
type KeyInfo struct { Exports []*Export `protobuf:"bytes,1,rep,name=Exports" json:"Exports,omitempty"` Imports []*Import `protobuf:"bytes,2,rep,name=Imports" json:"Imports,omitempty"` }
func (*KeyInfo) Descriptor ¶
func (*KeyInfo) GetExports ¶
func (*KeyInfo) GetImports ¶
func (*KeyInfo) ProtoMessage ¶
func (*KeyInfo) ProtoMessage()
type NodeKey ¶
type NodeKey struct { NodeId string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=UserId" json:"UserId,omitempty"` OwnerId string `protobuf:"bytes,3,opt,name=OwnerId" json:"OwnerId,omitempty"` Nonce []byte `protobuf:"bytes,4,opt,name=Nonce,proto3" json:"Nonce,omitempty"` BlockSize int32 `protobuf:"varint,5,opt,name=BlockSize" json:"BlockSize,omitempty"` Data []byte `protobuf:"bytes,6,opt,name=Data,proto3" json:"Data,omitempty"` }
func (*NodeKey) Descriptor ¶
func (*NodeKey) GetBlockSize ¶
func (*NodeKey) GetOwnerId ¶
func (*NodeKey) ProtoMessage ¶
func (*NodeKey) ProtoMessage()
type NodeKeyManager ¶
type NodeKeyManager struct {
NodeKeyManagerHandler
}
func (*NodeKeyManager) DeleteNode ¶
func (h *NodeKeyManager) DeleteNode(ctx context.Context, in *DeleteNodeRequest, out *DeleteNodeResponse) error
func (*NodeKeyManager) DeleteNodeKey ¶
func (h *NodeKeyManager) DeleteNodeKey(ctx context.Context, in *DeleteNodeKeyRequest, out *DeleteNodeKeyResponse) error
func (*NodeKeyManager) DeleteNodeSharedKey ¶
func (h *NodeKeyManager) DeleteNodeSharedKey(ctx context.Context, in *DeleteNodeSharedKeyRequest, out *DeleteNodeSharedKeyResponse) error
func (*NodeKeyManager) GetNodeKey ¶
func (h *NodeKeyManager) GetNodeKey(ctx context.Context, in *GetNodeKeyRequest, out *GetNodeKeyResponse) error
func (*NodeKeyManager) SetNodeKey ¶
func (h *NodeKeyManager) SetNodeKey(ctx context.Context, in *SetNodeKeyRequest, out *SetNodeKeyResponse) error
func (*NodeKeyManager) SetNodeParams ¶
func (h *NodeKeyManager) SetNodeParams(ctx context.Context, in *SetNodeParamsRequest, out *SetNodeParamsResponse) error
type NodeKeyManagerClient ¶
type NodeKeyManagerClient interface { DeleteNode(ctx context.Context, in *DeleteNodeRequest, opts ...client.CallOption) (*DeleteNodeResponse, error) SetNodeParams(ctx context.Context, in *SetNodeParamsRequest, opts ...client.CallOption) (*SetNodeParamsResponse, error) GetNodeKey(ctx context.Context, in *GetNodeKeyRequest, opts ...client.CallOption) (*GetNodeKeyResponse, error) SetNodeKey(ctx context.Context, in *SetNodeKeyRequest, opts ...client.CallOption) (*SetNodeKeyResponse, error) DeleteNodeKey(ctx context.Context, in *DeleteNodeKeyRequest, opts ...client.CallOption) (*DeleteNodeKeyResponse, error) }
func NewNodeKeyManagerClient ¶
func NewNodeKeyManagerClient(serviceName string, c client.Client) NodeKeyManagerClient
type NodeKeyManagerHandler ¶
type NodeKeyManagerHandler interface { DeleteNode(context.Context, *DeleteNodeRequest, *DeleteNodeResponse) error SetNodeParams(context.Context, *SetNodeParamsRequest, *SetNodeParamsResponse) error GetNodeKey(context.Context, *GetNodeKeyRequest, *GetNodeKeyResponse) error SetNodeKey(context.Context, *SetNodeKeyRequest, *SetNodeKeyResponse) error DeleteNodeKey(context.Context, *DeleteNodeKeyRequest, *DeleteNodeKeyResponse) error }
type Params ¶
type Params struct { Nonce []byte `protobuf:"bytes,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` BlockSize int32 `protobuf:"varint,2,opt,name=BlockSize" json:"BlockSize,omitempty"` }
func (*Params) Descriptor ¶
func (*Params) GetBlockSize ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
type SetNodeKeyRequest ¶
type SetNodeKeyRequest struct {
Key *NodeKey `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
}
func (*SetNodeKeyRequest) Descriptor ¶
func (*SetNodeKeyRequest) Descriptor() ([]byte, []int)
func (*SetNodeKeyRequest) GetKey ¶
func (m *SetNodeKeyRequest) GetKey() *NodeKey
func (*SetNodeKeyRequest) ProtoMessage ¶
func (*SetNodeKeyRequest) ProtoMessage()
func (*SetNodeKeyRequest) Reset ¶
func (m *SetNodeKeyRequest) Reset()
func (*SetNodeKeyRequest) String ¶
func (m *SetNodeKeyRequest) String() string
type SetNodeKeyResponse ¶
type SetNodeKeyResponse struct { }
func (*SetNodeKeyResponse) Descriptor ¶
func (*SetNodeKeyResponse) Descriptor() ([]byte, []int)
func (*SetNodeKeyResponse) ProtoMessage ¶
func (*SetNodeKeyResponse) ProtoMessage()
func (*SetNodeKeyResponse) Reset ¶
func (m *SetNodeKeyResponse) Reset()
func (*SetNodeKeyResponse) String ¶
func (m *SetNodeKeyResponse) String() string
type SetNodeParamsRequest ¶
type SetNodeParamsRequest struct { NodeId string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"` Params *Params `protobuf:"bytes,2,opt,name=Params" json:"Params,omitempty"` }
func (*SetNodeParamsRequest) Descriptor ¶
func (*SetNodeParamsRequest) Descriptor() ([]byte, []int)
func (*SetNodeParamsRequest) GetNodeId ¶
func (m *SetNodeParamsRequest) GetNodeId() string
func (*SetNodeParamsRequest) GetParams ¶
func (m *SetNodeParamsRequest) GetParams() *Params
func (*SetNodeParamsRequest) ProtoMessage ¶
func (*SetNodeParamsRequest) ProtoMessage()
func (*SetNodeParamsRequest) Reset ¶
func (m *SetNodeParamsRequest) Reset()
func (*SetNodeParamsRequest) String ¶
func (m *SetNodeParamsRequest) String() string
type SetNodeParamsResponse ¶
type SetNodeParamsResponse struct { }
func (*SetNodeParamsResponse) Descriptor ¶
func (*SetNodeParamsResponse) Descriptor() ([]byte, []int)
func (*SetNodeParamsResponse) ProtoMessage ¶
func (*SetNodeParamsResponse) ProtoMessage()
func (*SetNodeParamsResponse) Reset ¶
func (m *SetNodeParamsResponse) Reset()
func (*SetNodeParamsResponse) String ¶
func (m *SetNodeParamsResponse) String() string
type UserKeyStore ¶
type UserKeyStore struct {
UserKeyStoreHandler
}
func (*UserKeyStore) AddKey ¶
func (h *UserKeyStore) AddKey(ctx context.Context, in *AddKeyRequest, out *AddKeyResponse) error
func (*UserKeyStore) AdminCreateKey ¶
func (h *UserKeyStore) AdminCreateKey(ctx context.Context, in *AdminCreateKeyRequest, out *AdminCreateKeyResponse) error
func (*UserKeyStore) AdminDeleteKey ¶
func (h *UserKeyStore) AdminDeleteKey(ctx context.Context, in *AdminDeleteKeyRequest, out *AdminDeleteKeyResponse) error
func (*UserKeyStore) AdminExportKey ¶
func (h *UserKeyStore) AdminExportKey(ctx context.Context, in *AdminExportKeyRequest, out *AdminExportKeyResponse) error
func (*UserKeyStore) AdminImportKey ¶
func (h *UserKeyStore) AdminImportKey(ctx context.Context, in *AdminImportKeyRequest, out *AdminImportKeyResponse) error
func (*UserKeyStore) AdminListKeys ¶
func (h *UserKeyStore) AdminListKeys(ctx context.Context, in *AdminListKeysRequest, out *AdminListKeysResponse) error
func (*UserKeyStore) GetKey ¶
func (h *UserKeyStore) GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error
type UserKeyStoreClient ¶
type UserKeyStoreClient interface { AddKey(ctx context.Context, in *AddKeyRequest, opts ...client.CallOption) (*AddKeyResponse, error) GetKey(ctx context.Context, in *GetKeyRequest, opts ...client.CallOption) (*GetKeyResponse, error) AdminListKeys(ctx context.Context, in *AdminListKeysRequest, opts ...client.CallOption) (*AdminListKeysResponse, error) AdminCreateKey(ctx context.Context, in *AdminCreateKeyRequest, opts ...client.CallOption) (*AdminCreateKeyResponse, error) AdminDeleteKey(ctx context.Context, in *AdminDeleteKeyRequest, opts ...client.CallOption) (*AdminDeleteKeyResponse, error) AdminExportKey(ctx context.Context, in *AdminExportKeyRequest, opts ...client.CallOption) (*AdminExportKeyResponse, error) AdminImportKey(ctx context.Context, in *AdminImportKeyRequest, opts ...client.CallOption) (*AdminImportKeyResponse, error) }
func NewUserKeyStoreClient ¶
func NewUserKeyStoreClient(serviceName string, c client.Client) UserKeyStoreClient
type UserKeyStoreHandler ¶
type UserKeyStoreHandler interface { AddKey(context.Context, *AddKeyRequest, *AddKeyResponse) error GetKey(context.Context, *GetKeyRequest, *GetKeyResponse) error AdminListKeys(context.Context, *AdminListKeysRequest, *AdminListKeysResponse) error AdminCreateKey(context.Context, *AdminCreateKeyRequest, *AdminCreateKeyResponse) error AdminDeleteKey(context.Context, *AdminDeleteKeyRequest, *AdminDeleteKeyResponse) error AdminExportKey(context.Context, *AdminExportKeyRequest, *AdminExportKeyResponse) error AdminImportKey(context.Context, *AdminImportKeyRequest, *AdminImportKeyResponse) error }
Click to show internal directories.
Click to hide internal directories.