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 NodeKey Node NodeInfo Block RangedBlock GetNodeInfoRequest GetNodeInfoResponse GetNodePlainSizeRequest GetNodePlainSizeResponse SetNodeInfoRequest SetNodeInfoResponse DeleteNodeRequest DeleteNodeResponse DeleteNodeKeyRequest DeleteNodeKeyResponse DeleteNodeSharedKeyRequest DeleteNodeSharedKeyResponse SetNodeKeyRequest SetNodeKeyResponse SetNodeBlockRequest SetNodeBlockResponse CopyNodeInfoRequest CopyNodeInfoResponse
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 NodeKey Node NodeInfo Block RangedBlock GetNodeInfoRequest GetNodeInfoResponse GetNodePlainSizeRequest GetNodePlainSizeResponse SetNodeInfoRequest SetNodeInfoResponse DeleteNodeRequest DeleteNodeResponse DeleteNodeKeyRequest DeleteNodeKeyResponse DeleteNodeSharedKeyRequest DeleteNodeSharedKeyResponse SetNodeKeyRequest SetNodeKeyResponse SetNodeBlockRequest SetNodeBlockResponse CopyNodeInfoRequest CopyNodeInfoResponse
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
- func (*AdminCreateKeyRequest) Descriptor() ([]byte, []int)
- func (m *AdminCreateKeyRequest) GetKeyID() string
- func (m *AdminCreateKeyRequest) GetLabel() string
- func (*AdminCreateKeyRequest) ProtoMessage()
- func (m *AdminCreateKeyRequest) Reset()
- func (m *AdminCreateKeyRequest) String() string
- func (this *AdminCreateKeyRequest) Validate() error
- type AdminCreateKeyResponse
- type AdminDeleteKeyRequest
- type AdminDeleteKeyResponse
- type AdminExportKeyRequest
- func (*AdminExportKeyRequest) Descriptor() ([]byte, []int)
- func (m *AdminExportKeyRequest) GetKeyID() string
- func (m *AdminExportKeyRequest) GetStrPassword() string
- func (*AdminExportKeyRequest) ProtoMessage()
- func (m *AdminExportKeyRequest) Reset()
- func (m *AdminExportKeyRequest) String() string
- func (this *AdminExportKeyRequest) Validate() error
- 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
- func (this *AdminImportKeyRequest) Validate() error
- type AdminImportKeyResponse
- type AdminListKeysRequest
- type AdminListKeysResponse
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetBlockSize() uint32
- func (m *Block) GetHeaderSize() uint32
- func (m *Block) GetNonce() []byte
- func (m *Block) GetOwnerId() string
- func (m *Block) GetPartId() uint32
- func (m *Block) GetPosition() uint32
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- func (this *Block) Validate() error
- type CopyNodeInfoRequest
- func (*CopyNodeInfoRequest) Descriptor() ([]byte, []int)
- func (m *CopyNodeInfoRequest) GetNodeCopyUuid() string
- func (m *CopyNodeInfoRequest) GetNodeUuid() string
- func (*CopyNodeInfoRequest) ProtoMessage()
- func (m *CopyNodeInfoRequest) Reset()
- func (m *CopyNodeInfoRequest) String() string
- func (this *CopyNodeInfoRequest) Validate() error
- type CopyNodeInfoResponse
- type DeleteNodeKeyRequest
- func (*DeleteNodeKeyRequest) Descriptor() ([]byte, []int)
- func (m *DeleteNodeKeyRequest) GetNodeId() string
- func (m *DeleteNodeKeyRequest) GetUserId() string
- func (*DeleteNodeKeyRequest) ProtoMessage()
- func (m *DeleteNodeKeyRequest) Reset()
- func (m *DeleteNodeKeyRequest) String() string
- func (this *DeleteNodeKeyRequest) Validate() error
- 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) GetUserId() string
- func (*DeleteNodeSharedKeyRequest) ProtoMessage()
- func (m *DeleteNodeSharedKeyRequest) Reset()
- func (m *DeleteNodeSharedKeyRequest) String() string
- func (this *DeleteNodeSharedKeyRequest) Validate() error
- type DeleteNodeSharedKeyResponse
- type Export
- type GetKeyRequest
- func (*GetKeyRequest) Descriptor() ([]byte, []int)
- func (m *GetKeyRequest) GetKeyID() string
- func (m *GetKeyRequest) GetOwner() string
- func (m *GetKeyRequest) GetStrPassword() string
- func (*GetKeyRequest) ProtoMessage()
- func (m *GetKeyRequest) Reset()
- func (m *GetKeyRequest) String() string
- func (this *GetKeyRequest) Validate() error
- type GetKeyResponse
- type GetNodeInfoRequest
- func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetNodeInfoRequest) GetNodeId() string
- func (m *GetNodeInfoRequest) GetPlainLength() int64
- func (m *GetNodeInfoRequest) GetPlainOffset() int64
- func (m *GetNodeInfoRequest) GetUserId() string
- func (m *GetNodeInfoRequest) GetWithRange() bool
- func (*GetNodeInfoRequest) ProtoMessage()
- func (m *GetNodeInfoRequest) Reset()
- func (m *GetNodeInfoRequest) String() string
- func (this *GetNodeInfoRequest) Validate() error
- type GetNodeInfoResponse
- func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetNodeInfoResponse) GetEncryptedCount() int64
- func (m *GetNodeInfoResponse) GetEncryptedOffset() int64
- func (m *GetNodeInfoResponse) GetHeadSKippedPlainBytesCount() int64
- func (m *GetNodeInfoResponse) GetNodeInfo() *NodeInfo
- func (m *GetNodeInfoResponse) GetWithRange() bool
- func (*GetNodeInfoResponse) ProtoMessage()
- func (m *GetNodeInfoResponse) Reset()
- func (m *GetNodeInfoResponse) String() string
- func (this *GetNodeInfoResponse) Validate() error
- type GetNodePlainSizeRequest
- func (*GetNodePlainSizeRequest) Descriptor() ([]byte, []int)
- func (m *GetNodePlainSizeRequest) GetNodeId() string
- func (m *GetNodePlainSizeRequest) GetUserId() string
- func (*GetNodePlainSizeRequest) ProtoMessage()
- func (m *GetNodePlainSizeRequest) Reset()
- func (m *GetNodePlainSizeRequest) String() string
- func (this *GetNodePlainSizeRequest) Validate() error
- type GetNodePlainSizeResponse
- func (*GetNodePlainSizeResponse) Descriptor() ([]byte, []int)
- func (m *GetNodePlainSizeResponse) GetSize() int64
- func (*GetNodePlainSizeResponse) ProtoMessage()
- func (m *GetNodePlainSizeResponse) Reset()
- func (m *GetNodePlainSizeResponse) String() string
- func (this *GetNodePlainSizeResponse) Validate() error
- 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
- func (this *Key) Validate() error
- type KeyInfo
- type Node
- type NodeInfo
- type NodeKey
- func (*NodeKey) Descriptor() ([]byte, []int)
- func (m *NodeKey) GetKeyData() []byte
- func (m *NodeKey) GetNodeId() string
- func (m *NodeKey) GetOwnerId() string
- func (m *NodeKey) GetUserId() string
- func (*NodeKey) ProtoMessage()
- func (m *NodeKey) Reset()
- func (m *NodeKey) String() string
- func (this *NodeKey) Validate() error
- type NodeKeyManager
- func (h *NodeKeyManager) CopyNodeInfo(ctx context.Context, in *CopyNodeInfoRequest, out *CopyNodeInfoResponse) error
- 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) GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, out *GetNodeInfoResponse) error
- func (h *NodeKeyManager) GetNodePlainSize(ctx context.Context, in *GetNodePlainSizeRequest, ...) error
- func (h *NodeKeyManager) SetNodeInfo(ctx context.Context, stream server.Streamer) error
- type NodeKeyManagerClient
- type NodeKeyManagerHandler
- type NodeKeyManager_SetNodeInfoClient
- type NodeKeyManager_SetNodeInfoStream
- type RangedBlock
- func (*RangedBlock) Descriptor() ([]byte, []int)
- func (m *RangedBlock) GetBlockSize() uint32
- func (m *RangedBlock) GetHeaderSize() uint32
- func (m *RangedBlock) GetOwnerId() string
- func (m *RangedBlock) GetPartId() uint32
- func (m *RangedBlock) GetSeqEnd() uint32
- func (m *RangedBlock) GetSeqStart() uint32
- func (*RangedBlock) ProtoMessage()
- func (m *RangedBlock) Reset()
- func (m *RangedBlock) String() string
- func (this *RangedBlock) Validate() error
- type SetNodeBlockRequest
- func (*SetNodeBlockRequest) Descriptor() ([]byte, []int)
- func (m *SetNodeBlockRequest) GetBlock() *Block
- func (m *SetNodeBlockRequest) GetNodeUuid() string
- func (*SetNodeBlockRequest) ProtoMessage()
- func (m *SetNodeBlockRequest) Reset()
- func (m *SetNodeBlockRequest) String() string
- func (this *SetNodeBlockRequest) Validate() error
- type SetNodeBlockResponse
- type SetNodeInfoRequest
- func (*SetNodeInfoRequest) Descriptor() ([]byte, []int)
- func (m *SetNodeInfoRequest) GetAction() string
- func (m *SetNodeInfoRequest) GetSetBlock() *SetNodeBlockRequest
- func (m *SetNodeInfoRequest) GetSetNodeKey() *SetNodeKeyRequest
- func (*SetNodeInfoRequest) ProtoMessage()
- func (m *SetNodeInfoRequest) Reset()
- func (m *SetNodeInfoRequest) String() string
- func (this *SetNodeInfoRequest) Validate() error
- type SetNodeInfoResponse
- func (*SetNodeInfoResponse) Descriptor() ([]byte, []int)
- func (m *SetNodeInfoResponse) GetErrorText() string
- func (m *SetNodeInfoResponse) GetSetBlock() *SetNodeBlockResponse
- func (m *SetNodeInfoResponse) GetSetNodeKey() *SetNodeKeyResponse
- func (*SetNodeInfoResponse) ProtoMessage()
- func (m *SetNodeInfoResponse) Reset()
- func (m *SetNodeInfoResponse) String() string
- func (this *SetNodeInfoResponse) Validate() error
- type SetNodeKeyRequest
- type SetNodeKeyResponse
- 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 to add Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"` // Key password as string 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
func (*AddKeyRequest) Validate ¶
func (this *AddKeyRequest) Validate() error
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
func (*AddKeyResponse) Validate ¶
func (this *AddKeyResponse) Validate() error
type AdminCreateKeyRequest ¶
type AdminCreateKeyRequest struct { // Create a key with this ID KeyID string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"` // Provide label for the newly created key 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
func (*AdminCreateKeyRequest) Validate ¶
func (this *AdminCreateKeyRequest) Validate() error
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
func (*AdminCreateKeyResponse) Validate ¶
func (this *AdminCreateKeyResponse) Validate() error
type AdminDeleteKeyRequest ¶
type AdminDeleteKeyRequest struct { // Id of the key to delete 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
func (*AdminDeleteKeyRequest) Validate ¶
func (this *AdminDeleteKeyRequest) Validate() error
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
func (*AdminDeleteKeyResponse) Validate ¶
func (this *AdminDeleteKeyResponse) Validate() error
type AdminExportKeyRequest ¶
type AdminExportKeyRequest struct { // Id of the key to export KeyID string `protobuf:"bytes,1,opt,name=KeyID" json:"KeyID,omitempty"` // Associated password as string 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
func (*AdminExportKeyRequest) Validate ¶
func (this *AdminExportKeyRequest) Validate() error
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
func (*AdminExportKeyResponse) Validate ¶
func (this *AdminExportKeyResponse) Validate() error
type AdminImportKeyRequest ¶
type AdminImportKeyRequest struct { // Imported key data Key *Key `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"` // Key password StrPassword string `protobuf:"bytes,2,opt,name=StrPassword" json:"StrPassword,omitempty"` // Whether to override if a key with same ID already exists 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
func (*AdminImportKeyRequest) Validate ¶
func (this *AdminImportKeyRequest) Validate() error
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
func (*AdminImportKeyResponse) Validate ¶
func (this *AdminImportKeyResponse) Validate() error
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
func (*AdminListKeysRequest) Validate ¶
func (this *AdminListKeysRequest) Validate() error
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
func (*AdminListKeysResponse) Validate ¶
func (this *AdminListKeysResponse) Validate() error
type Block ¶
type Block struct { OwnerId string `protobuf:"bytes,1,opt,name=OwnerId" json:"OwnerId,omitempty"` PartId uint32 `protobuf:"varint,2,opt,name=PartId" json:"PartId,omitempty"` Position uint32 `protobuf:"varint,3,opt,name=Position" json:"Position,omitempty"` HeaderSize uint32 `protobuf:"varint,4,opt,name=HeaderSize" json:"HeaderSize,omitempty"` BlockSize uint32 `protobuf:"varint,5,opt,name=BlockSize" json:"BlockSize,omitempty"` Nonce []byte `protobuf:"bytes,6,opt,name=Nonce,proto3" json:"Nonce,omitempty"` }
func (*Block) Descriptor ¶
func (*Block) GetBlockSize ¶
func (*Block) GetHeaderSize ¶
func (*Block) GetOwnerId ¶
func (*Block) GetPosition ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
type CopyNodeInfoRequest ¶
type CopyNodeInfoRequest struct { NodeUuid string `protobuf:"bytes,1,opt,name=NodeUuid" json:"NodeUuid,omitempty"` NodeCopyUuid string `protobuf:"bytes,2,opt,name=NodeCopyUuid" json:"NodeCopyUuid,omitempty"` }
func (*CopyNodeInfoRequest) Descriptor ¶
func (*CopyNodeInfoRequest) Descriptor() ([]byte, []int)
func (*CopyNodeInfoRequest) GetNodeCopyUuid ¶
func (m *CopyNodeInfoRequest) GetNodeCopyUuid() string
func (*CopyNodeInfoRequest) GetNodeUuid ¶
func (m *CopyNodeInfoRequest) GetNodeUuid() string
func (*CopyNodeInfoRequest) ProtoMessage ¶
func (*CopyNodeInfoRequest) ProtoMessage()
func (*CopyNodeInfoRequest) Reset ¶
func (m *CopyNodeInfoRequest) Reset()
func (*CopyNodeInfoRequest) String ¶
func (m *CopyNodeInfoRequest) String() string
func (*CopyNodeInfoRequest) Validate ¶
func (this *CopyNodeInfoRequest) Validate() error
type CopyNodeInfoResponse ¶
type CopyNodeInfoResponse struct { }
func (*CopyNodeInfoResponse) Descriptor ¶
func (*CopyNodeInfoResponse) Descriptor() ([]byte, []int)
func (*CopyNodeInfoResponse) ProtoMessage ¶
func (*CopyNodeInfoResponse) ProtoMessage()
func (*CopyNodeInfoResponse) Reset ¶
func (m *CopyNodeInfoResponse) Reset()
func (*CopyNodeInfoResponse) String ¶
func (m *CopyNodeInfoResponse) String() string
func (*CopyNodeInfoResponse) Validate ¶
func (this *CopyNodeInfoResponse) Validate() error
type DeleteNodeKeyRequest ¶
type DeleteNodeKeyRequest struct { UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"` NodeId string `protobuf:"bytes,2,opt,name=NodeId" json:"NodeId,omitempty"` }
func (*DeleteNodeKeyRequest) Descriptor ¶
func (*DeleteNodeKeyRequest) Descriptor() ([]byte, []int)
func (*DeleteNodeKeyRequest) GetNodeId ¶
func (m *DeleteNodeKeyRequest) GetNodeId() string
func (*DeleteNodeKeyRequest) GetUserId ¶
func (m *DeleteNodeKeyRequest) GetUserId() string
func (*DeleteNodeKeyRequest) ProtoMessage ¶
func (*DeleteNodeKeyRequest) ProtoMessage()
func (*DeleteNodeKeyRequest) Reset ¶
func (m *DeleteNodeKeyRequest) Reset()
func (*DeleteNodeKeyRequest) String ¶
func (m *DeleteNodeKeyRequest) String() string
func (*DeleteNodeKeyRequest) Validate ¶
func (this *DeleteNodeKeyRequest) Validate() error
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
func (*DeleteNodeKeyResponse) Validate ¶
func (this *DeleteNodeKeyResponse) Validate() error
type DeleteNodeRequest ¶
type DeleteNodeRequest struct {
NodeId string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"`
}
func (*DeleteNodeRequest) Descriptor ¶
func (*DeleteNodeRequest) Descriptor() ([]byte, []int)
func (*DeleteNodeRequest) GetNodeId ¶
func (m *DeleteNodeRequest) GetNodeId() string
func (*DeleteNodeRequest) ProtoMessage ¶
func (*DeleteNodeRequest) ProtoMessage()
func (*DeleteNodeRequest) Reset ¶
func (m *DeleteNodeRequest) Reset()
func (*DeleteNodeRequest) String ¶
func (m *DeleteNodeRequest) String() string
func (*DeleteNodeRequest) Validate ¶
func (this *DeleteNodeRequest) Validate() error
type DeleteNodeResponse ¶
type DeleteNodeResponse struct { }
func (*DeleteNodeResponse) Descriptor ¶
func (*DeleteNodeResponse) Descriptor() ([]byte, []int)
func (*DeleteNodeResponse) ProtoMessage ¶
func (*DeleteNodeResponse) ProtoMessage()
func (*DeleteNodeResponse) Reset ¶
func (m *DeleteNodeResponse) Reset()
func (*DeleteNodeResponse) String ¶
func (m *DeleteNodeResponse) String() string
func (*DeleteNodeResponse) Validate ¶
func (this *DeleteNodeResponse) Validate() error
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) GetUserId ¶
func (m *DeleteNodeSharedKeyRequest) GetUserId() string
func (*DeleteNodeSharedKeyRequest) ProtoMessage ¶
func (*DeleteNodeSharedKeyRequest) ProtoMessage()
func (*DeleteNodeSharedKeyRequest) Reset ¶
func (m *DeleteNodeSharedKeyRequest) Reset()
func (*DeleteNodeSharedKeyRequest) String ¶
func (m *DeleteNodeSharedKeyRequest) String() string
func (*DeleteNodeSharedKeyRequest) Validate ¶
func (this *DeleteNodeSharedKeyRequest) Validate() error
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
func (*DeleteNodeSharedKeyResponse) Validate ¶
func (this *DeleteNodeSharedKeyResponse) Validate() error
type Export ¶
type Export struct { // Name of exporter By string `protobuf:"bytes,1,opt,name=By" json:"By,omitempty"` // Date of export 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
func (*GetKeyRequest) Validate ¶
func (this *GetKeyRequest) Validate() error
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
func (*GetKeyResponse) Validate ¶
func (this *GetKeyResponse) Validate() error
type GetNodeInfoRequest ¶
type GetNodeInfoRequest struct { UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"` NodeId string `protobuf:"bytes,2,opt,name=NodeId" json:"NodeId,omitempty"` WithRange bool `protobuf:"varint,3,opt,name=WithRange" json:"WithRange,omitempty"` PlainOffset int64 `protobuf:"varint,4,opt,name=PlainOffset" json:"PlainOffset,omitempty"` PlainLength int64 `protobuf:"varint,5,opt,name=PlainLength" json:"PlainLength,omitempty"` }
func (*GetNodeInfoRequest) Descriptor ¶
func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
func (*GetNodeInfoRequest) GetNodeId ¶
func (m *GetNodeInfoRequest) GetNodeId() string
func (*GetNodeInfoRequest) GetPlainLength ¶
func (m *GetNodeInfoRequest) GetPlainLength() int64
func (*GetNodeInfoRequest) GetPlainOffset ¶
func (m *GetNodeInfoRequest) GetPlainOffset() int64
func (*GetNodeInfoRequest) GetUserId ¶
func (m *GetNodeInfoRequest) GetUserId() string
func (*GetNodeInfoRequest) GetWithRange ¶
func (m *GetNodeInfoRequest) GetWithRange() bool
func (*GetNodeInfoRequest) ProtoMessage ¶
func (*GetNodeInfoRequest) ProtoMessage()
func (*GetNodeInfoRequest) Reset ¶
func (m *GetNodeInfoRequest) Reset()
func (*GetNodeInfoRequest) String ¶
func (m *GetNodeInfoRequest) String() string
func (*GetNodeInfoRequest) Validate ¶
func (this *GetNodeInfoRequest) Validate() error
type GetNodeInfoResponse ¶
type GetNodeInfoResponse struct { NodeInfo *NodeInfo `protobuf:"bytes,1,opt,name=NodeInfo" json:"NodeInfo,omitempty"` HeadSKippedPlainBytesCount int64 `protobuf:"varint,2,opt,name=HeadSKippedPlainBytesCount" json:"HeadSKippedPlainBytesCount,omitempty"` WithRange bool `protobuf:"varint,3,opt,name=WithRange" json:"WithRange,omitempty"` EncryptedOffset int64 `protobuf:"varint,4,opt,name=EncryptedOffset" json:"EncryptedOffset,omitempty"` EncryptedCount int64 `protobuf:"varint,5,opt,name=EncryptedCount" json:"EncryptedCount,omitempty"` }
func (*GetNodeInfoResponse) Descriptor ¶
func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
func (*GetNodeInfoResponse) GetEncryptedCount ¶
func (m *GetNodeInfoResponse) GetEncryptedCount() int64
func (*GetNodeInfoResponse) GetEncryptedOffset ¶
func (m *GetNodeInfoResponse) GetEncryptedOffset() int64
func (*GetNodeInfoResponse) GetHeadSKippedPlainBytesCount ¶
func (m *GetNodeInfoResponse) GetHeadSKippedPlainBytesCount() int64
func (*GetNodeInfoResponse) GetNodeInfo ¶
func (m *GetNodeInfoResponse) GetNodeInfo() *NodeInfo
func (*GetNodeInfoResponse) GetWithRange ¶
func (m *GetNodeInfoResponse) GetWithRange() bool
func (*GetNodeInfoResponse) ProtoMessage ¶
func (*GetNodeInfoResponse) ProtoMessage()
func (*GetNodeInfoResponse) Reset ¶
func (m *GetNodeInfoResponse) Reset()
func (*GetNodeInfoResponse) String ¶
func (m *GetNodeInfoResponse) String() string
func (*GetNodeInfoResponse) Validate ¶
func (this *GetNodeInfoResponse) Validate() error
type GetNodePlainSizeRequest ¶
type GetNodePlainSizeRequest struct { UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"` NodeId string `protobuf:"bytes,2,opt,name=NodeId" json:"NodeId,omitempty"` }
func (*GetNodePlainSizeRequest) Descriptor ¶
func (*GetNodePlainSizeRequest) Descriptor() ([]byte, []int)
func (*GetNodePlainSizeRequest) GetNodeId ¶
func (m *GetNodePlainSizeRequest) GetNodeId() string
func (*GetNodePlainSizeRequest) GetUserId ¶
func (m *GetNodePlainSizeRequest) GetUserId() string
func (*GetNodePlainSizeRequest) ProtoMessage ¶
func (*GetNodePlainSizeRequest) ProtoMessage()
func (*GetNodePlainSizeRequest) Reset ¶
func (m *GetNodePlainSizeRequest) Reset()
func (*GetNodePlainSizeRequest) String ¶
func (m *GetNodePlainSizeRequest) String() string
func (*GetNodePlainSizeRequest) Validate ¶
func (this *GetNodePlainSizeRequest) Validate() error
type GetNodePlainSizeResponse ¶
type GetNodePlainSizeResponse struct {
Size int64 `protobuf:"varint,1,opt,name=Size" json:"Size,omitempty"`
}
func (*GetNodePlainSizeResponse) Descriptor ¶
func (*GetNodePlainSizeResponse) Descriptor() ([]byte, []int)
func (*GetNodePlainSizeResponse) GetSize ¶
func (m *GetNodePlainSizeResponse) GetSize() int64
func (*GetNodePlainSizeResponse) ProtoMessage ¶
func (*GetNodePlainSizeResponse) ProtoMessage()
func (*GetNodePlainSizeResponse) Reset ¶
func (m *GetNodePlainSizeResponse) Reset()
func (*GetNodePlainSizeResponse) String ¶
func (m *GetNodePlainSizeResponse) String() string
func (*GetNodePlainSizeResponse) Validate ¶
func (this *GetNodePlainSizeResponse) Validate() error
type Import ¶
type Import struct { // Name of importer By string `protobuf:"bytes,1,opt,name=By" json:"By,omitempty"` // Date of import 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 { // Key owner Owner string `protobuf:"bytes,1,opt,name=Owner" json:"Owner,omitempty"` // Key ID ID string `protobuf:"bytes,2,opt,name=ID" json:"ID,omitempty"` // Key label Label string `protobuf:"bytes,3,opt,name=Label" json:"Label,omitempty"` // Key content Content string `protobuf:"bytes,4,opt,name=Content" json:"Content,omitempty"` // Key creation date CreationDate int32 `protobuf:"varint,5,opt,name=CreationDate" json:"CreationDate,omitempty"` // Additional key info 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 Node ¶
type Node struct { NodeId string `protobuf:"bytes,1,opt,name=NodeId" json:"NodeId,omitempty"` Legacy bool `protobuf:"varint,2,opt,name=Legacy" json:"Legacy,omitempty"` }
func (*Node) Descriptor ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type NodeInfo ¶
type NodeInfo struct { Node *Node `protobuf:"bytes,1,opt,name=Node" json:"Node,omitempty"` NodeKey *NodeKey `protobuf:"bytes,2,opt,name=NodeKey" json:"NodeKey,omitempty"` Block *Block `protobuf:"bytes,3,opt,name=Block" json:"Block,omitempty"` }
func (*NodeInfo) Descriptor ¶
func (*NodeInfo) GetNodeKey ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) 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"` KeyData []byte `protobuf:"bytes,6,opt,name=KeyData,proto3" json:"KeyData,omitempty"` }
func (*NodeKey) Descriptor ¶
func (*NodeKey) GetKeyData ¶
func (*NodeKey) GetOwnerId ¶
func (*NodeKey) ProtoMessage ¶
func (*NodeKey) ProtoMessage()
type NodeKeyManager ¶
type NodeKeyManager struct {
NodeKeyManagerHandler
}
func (*NodeKeyManager) CopyNodeInfo ¶
func (h *NodeKeyManager) CopyNodeInfo(ctx context.Context, in *CopyNodeInfoRequest, out *CopyNodeInfoResponse) error
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) GetNodeInfo ¶
func (h *NodeKeyManager) GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, out *GetNodeInfoResponse) error
func (*NodeKeyManager) GetNodePlainSize ¶
func (h *NodeKeyManager) GetNodePlainSize(ctx context.Context, in *GetNodePlainSizeRequest, out *GetNodePlainSizeResponse) error
func (*NodeKeyManager) SetNodeInfo ¶
type NodeKeyManagerClient ¶
type NodeKeyManagerClient interface { GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...client.CallOption) (*GetNodeInfoResponse, error) GetNodePlainSize(ctx context.Context, in *GetNodePlainSizeRequest, opts ...client.CallOption) (*GetNodePlainSizeResponse, error) SetNodeInfo(ctx context.Context, opts ...client.CallOption) (NodeKeyManager_SetNodeInfoClient, error) CopyNodeInfo(ctx context.Context, in *CopyNodeInfoRequest, opts ...client.CallOption) (*CopyNodeInfoResponse, error) DeleteNode(ctx context.Context, in *DeleteNodeRequest, opts ...client.CallOption) (*DeleteNodeResponse, 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 { GetNodeInfo(context.Context, *GetNodeInfoRequest, *GetNodeInfoResponse) error GetNodePlainSize(context.Context, *GetNodePlainSizeRequest, *GetNodePlainSizeResponse) error SetNodeInfo(context.Context, NodeKeyManager_SetNodeInfoStream) error CopyNodeInfo(context.Context, *CopyNodeInfoRequest, *CopyNodeInfoResponse) error DeleteNode(context.Context, *DeleteNodeRequest, *DeleteNodeResponse) error DeleteNodeKey(context.Context, *DeleteNodeKeyRequest, *DeleteNodeKeyResponse) error }
type NodeKeyManager_SetNodeInfoClient ¶
type NodeKeyManager_SetNodeInfoClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SetNodeInfoRequest) error }
type NodeKeyManager_SetNodeInfoStream ¶
type NodeKeyManager_SetNodeInfoStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SetNodeInfoRequest, error) }
type RangedBlock ¶
type RangedBlock struct { OwnerId string `protobuf:"bytes,1,opt,name=OwnerId" json:"OwnerId,omitempty"` PartId uint32 `protobuf:"varint,2,opt,name=PartId" json:"PartId,omitempty"` SeqStart uint32 `protobuf:"varint,3,opt,name=SeqStart" json:"SeqStart,omitempty"` SeqEnd uint32 `protobuf:"varint,4,opt,name=SeqEnd" json:"SeqEnd,omitempty"` HeaderSize uint32 `protobuf:"varint,5,opt,name=HeaderSize" json:"HeaderSize,omitempty"` BlockSize uint32 `protobuf:"varint,6,opt,name=BlockSize" json:"BlockSize,omitempty"` }
func (*RangedBlock) Descriptor ¶
func (*RangedBlock) Descriptor() ([]byte, []int)
func (*RangedBlock) GetBlockSize ¶
func (m *RangedBlock) GetBlockSize() uint32
func (*RangedBlock) GetHeaderSize ¶
func (m *RangedBlock) GetHeaderSize() uint32
func (*RangedBlock) GetOwnerId ¶
func (m *RangedBlock) GetOwnerId() string
func (*RangedBlock) GetPartId ¶
func (m *RangedBlock) GetPartId() uint32
func (*RangedBlock) GetSeqEnd ¶
func (m *RangedBlock) GetSeqEnd() uint32
func (*RangedBlock) GetSeqStart ¶
func (m *RangedBlock) GetSeqStart() uint32
func (*RangedBlock) ProtoMessage ¶
func (*RangedBlock) ProtoMessage()
func (*RangedBlock) Reset ¶
func (m *RangedBlock) Reset()
func (*RangedBlock) String ¶
func (m *RangedBlock) String() string
func (*RangedBlock) Validate ¶
func (this *RangedBlock) Validate() error
type SetNodeBlockRequest ¶
type SetNodeBlockRequest struct { NodeUuid string `protobuf:"bytes,1,opt,name=NodeUuid" json:"NodeUuid,omitempty"` Block *Block `protobuf:"bytes,2,opt,name=Block" json:"Block,omitempty"` }
func (*SetNodeBlockRequest) Descriptor ¶
func (*SetNodeBlockRequest) Descriptor() ([]byte, []int)
func (*SetNodeBlockRequest) GetBlock ¶
func (m *SetNodeBlockRequest) GetBlock() *Block
func (*SetNodeBlockRequest) GetNodeUuid ¶
func (m *SetNodeBlockRequest) GetNodeUuid() string
func (*SetNodeBlockRequest) ProtoMessage ¶
func (*SetNodeBlockRequest) ProtoMessage()
func (*SetNodeBlockRequest) Reset ¶
func (m *SetNodeBlockRequest) Reset()
func (*SetNodeBlockRequest) String ¶
func (m *SetNodeBlockRequest) String() string
func (*SetNodeBlockRequest) Validate ¶
func (this *SetNodeBlockRequest) Validate() error
type SetNodeBlockResponse ¶
type SetNodeBlockResponse struct { }
func (*SetNodeBlockResponse) Descriptor ¶
func (*SetNodeBlockResponse) Descriptor() ([]byte, []int)
func (*SetNodeBlockResponse) ProtoMessage ¶
func (*SetNodeBlockResponse) ProtoMessage()
func (*SetNodeBlockResponse) Reset ¶
func (m *SetNodeBlockResponse) Reset()
func (*SetNodeBlockResponse) String ¶
func (m *SetNodeBlockResponse) String() string
func (*SetNodeBlockResponse) Validate ¶
func (this *SetNodeBlockResponse) Validate() error
type SetNodeInfoRequest ¶
type SetNodeInfoRequest struct { Action string `protobuf:"bytes,1,opt,name=Action" json:"Action,omitempty"` SetNodeKey *SetNodeKeyRequest `protobuf:"bytes,2,opt,name=SetNodeKey" json:"SetNodeKey,omitempty"` SetBlock *SetNodeBlockRequest `protobuf:"bytes,3,opt,name=SetBlock" json:"SetBlock,omitempty"` }
func (*SetNodeInfoRequest) Descriptor ¶
func (*SetNodeInfoRequest) Descriptor() ([]byte, []int)
func (*SetNodeInfoRequest) GetAction ¶
func (m *SetNodeInfoRequest) GetAction() string
func (*SetNodeInfoRequest) GetSetBlock ¶
func (m *SetNodeInfoRequest) GetSetBlock() *SetNodeBlockRequest
func (*SetNodeInfoRequest) GetSetNodeKey ¶
func (m *SetNodeInfoRequest) GetSetNodeKey() *SetNodeKeyRequest
func (*SetNodeInfoRequest) ProtoMessage ¶
func (*SetNodeInfoRequest) ProtoMessage()
func (*SetNodeInfoRequest) Reset ¶
func (m *SetNodeInfoRequest) Reset()
func (*SetNodeInfoRequest) String ¶
func (m *SetNodeInfoRequest) String() string
func (*SetNodeInfoRequest) Validate ¶
func (this *SetNodeInfoRequest) Validate() error
type SetNodeInfoResponse ¶
type SetNodeInfoResponse struct { ErrorText string `protobuf:"bytes,1,opt,name=ErrorText" json:"ErrorText,omitempty"` SetNodeKey *SetNodeKeyResponse `protobuf:"bytes,2,opt,name=SetNodeKey" json:"SetNodeKey,omitempty"` SetBlock *SetNodeBlockResponse `protobuf:"bytes,3,opt,name=SetBlock" json:"SetBlock,omitempty"` }
func (*SetNodeInfoResponse) Descriptor ¶
func (*SetNodeInfoResponse) Descriptor() ([]byte, []int)
func (*SetNodeInfoResponse) GetErrorText ¶
func (m *SetNodeInfoResponse) GetErrorText() string
func (*SetNodeInfoResponse) GetSetBlock ¶
func (m *SetNodeInfoResponse) GetSetBlock() *SetNodeBlockResponse
func (*SetNodeInfoResponse) GetSetNodeKey ¶
func (m *SetNodeInfoResponse) GetSetNodeKey() *SetNodeKeyResponse
func (*SetNodeInfoResponse) ProtoMessage ¶
func (*SetNodeInfoResponse) ProtoMessage()
func (*SetNodeInfoResponse) Reset ¶
func (m *SetNodeInfoResponse) Reset()
func (*SetNodeInfoResponse) String ¶
func (m *SetNodeInfoResponse) String() string
func (*SetNodeInfoResponse) Validate ¶
func (this *SetNodeInfoResponse) Validate() error
type SetNodeKeyRequest ¶
type SetNodeKeyRequest struct {
NodeKey *NodeKey `protobuf:"bytes,1,opt,name=NodeKey" json:"NodeKey,omitempty"`
}
func (*SetNodeKeyRequest) Descriptor ¶
func (*SetNodeKeyRequest) Descriptor() ([]byte, []int)
func (*SetNodeKeyRequest) GetNodeKey ¶
func (m *SetNodeKeyRequest) GetNodeKey() *NodeKey
func (*SetNodeKeyRequest) ProtoMessage ¶
func (*SetNodeKeyRequest) ProtoMessage()
func (*SetNodeKeyRequest) Reset ¶
func (m *SetNodeKeyRequest) Reset()
func (*SetNodeKeyRequest) String ¶
func (m *SetNodeKeyRequest) String() string
func (*SetNodeKeyRequest) Validate ¶
func (this *SetNodeKeyRequest) Validate() error
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
func (*SetNodeKeyResponse) Validate ¶
func (this *SetNodeKeyResponse) Validate() error
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.