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 *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
func (*AddKeyRequest) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (this *AddKeyResponse) Validate() error
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
func (*AdminCreateKeyRequest) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (this *AdminCreateKeyResponse) Validate() error
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
func (*AdminDeleteKeyRequest) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (this *AdminDeleteKeyResponse) Validate() error
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
func (*AdminExportKeyRequest) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (this *AdminExportKeyResponse) Validate() error
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
func (*AdminImportKeyRequest) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (this *AdminListKeysResponse) Validate() error
type Block ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*Block) GetBlockSize ¶ added in v1.6.0
func (*Block) GetHeaderSize ¶ added in v1.6.0
func (*Block) GetOwnerId ¶ added in v1.6.0
func (*Block) GetPosition ¶ added in v1.6.0
func (*Block) ProtoMessage ¶ added in v1.6.0
func (*Block) ProtoMessage()
type CopyNodeInfoRequest ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*CopyNodeInfoRequest) Descriptor() ([]byte, []int)
func (*CopyNodeInfoRequest) GetNodeCopyUuid ¶ added in v1.6.0
func (m *CopyNodeInfoRequest) GetNodeCopyUuid() string
func (*CopyNodeInfoRequest) GetNodeUuid ¶ added in v1.6.0
func (m *CopyNodeInfoRequest) GetNodeUuid() string
func (*CopyNodeInfoRequest) ProtoMessage ¶ added in v1.6.0
func (*CopyNodeInfoRequest) ProtoMessage()
func (*CopyNodeInfoRequest) Reset ¶ added in v1.6.0
func (m *CopyNodeInfoRequest) Reset()
func (*CopyNodeInfoRequest) String ¶ added in v1.6.0
func (m *CopyNodeInfoRequest) String() string
func (*CopyNodeInfoRequest) Validate ¶ added in v1.6.0
func (this *CopyNodeInfoRequest) Validate() error
type CopyNodeInfoResponse ¶ added in v1.6.0
type CopyNodeInfoResponse struct { }
func (*CopyNodeInfoResponse) Descriptor ¶ added in v1.6.0
func (*CopyNodeInfoResponse) Descriptor() ([]byte, []int)
func (*CopyNodeInfoResponse) ProtoMessage ¶ added in v1.6.0
func (*CopyNodeInfoResponse) ProtoMessage()
func (*CopyNodeInfoResponse) Reset ¶ added in v1.6.0
func (m *CopyNodeInfoResponse) Reset()
func (*CopyNodeInfoResponse) String ¶ added in v1.6.0
func (m *CopyNodeInfoResponse) String() string
func (*CopyNodeInfoResponse) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (this *DeleteNodeSharedKeyResponse) Validate() error
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
func (*GetKeyRequest) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (this *GetKeyResponse) Validate() error
type GetNodeInfoRequest ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
func (*GetNodeInfoRequest) GetNodeId ¶ added in v1.6.0
func (m *GetNodeInfoRequest) GetNodeId() string
func (*GetNodeInfoRequest) GetPlainLength ¶ added in v1.6.0
func (m *GetNodeInfoRequest) GetPlainLength() int64
func (*GetNodeInfoRequest) GetPlainOffset ¶ added in v1.6.0
func (m *GetNodeInfoRequest) GetPlainOffset() int64
func (*GetNodeInfoRequest) GetUserId ¶ added in v1.6.0
func (m *GetNodeInfoRequest) GetUserId() string
func (*GetNodeInfoRequest) GetWithRange ¶ added in v1.6.0
func (m *GetNodeInfoRequest) GetWithRange() bool
func (*GetNodeInfoRequest) ProtoMessage ¶ added in v1.6.0
func (*GetNodeInfoRequest) ProtoMessage()
func (*GetNodeInfoRequest) Reset ¶ added in v1.6.0
func (m *GetNodeInfoRequest) Reset()
func (*GetNodeInfoRequest) String ¶ added in v1.6.0
func (m *GetNodeInfoRequest) String() string
func (*GetNodeInfoRequest) Validate ¶ added in v1.6.0
func (this *GetNodeInfoRequest) Validate() error
type GetNodeInfoResponse ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
func (*GetNodeInfoResponse) GetEncryptedCount ¶ added in v1.6.0
func (m *GetNodeInfoResponse) GetEncryptedCount() int64
func (*GetNodeInfoResponse) GetEncryptedOffset ¶ added in v1.6.0
func (m *GetNodeInfoResponse) GetEncryptedOffset() int64
func (*GetNodeInfoResponse) GetHeadSKippedPlainBytesCount ¶ added in v1.6.0
func (m *GetNodeInfoResponse) GetHeadSKippedPlainBytesCount() int64
func (*GetNodeInfoResponse) GetNodeInfo ¶ added in v1.6.0
func (m *GetNodeInfoResponse) GetNodeInfo() *NodeInfo
func (*GetNodeInfoResponse) GetWithRange ¶ added in v1.6.0
func (m *GetNodeInfoResponse) GetWithRange() bool
func (*GetNodeInfoResponse) ProtoMessage ¶ added in v1.6.0
func (*GetNodeInfoResponse) ProtoMessage()
func (*GetNodeInfoResponse) Reset ¶ added in v1.6.0
func (m *GetNodeInfoResponse) Reset()
func (*GetNodeInfoResponse) String ¶ added in v1.6.0
func (m *GetNodeInfoResponse) String() string
func (*GetNodeInfoResponse) Validate ¶ added in v1.6.0
func (this *GetNodeInfoResponse) Validate() error
type GetNodePlainSizeRequest ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*GetNodePlainSizeRequest) Descriptor() ([]byte, []int)
func (*GetNodePlainSizeRequest) GetNodeId ¶ added in v1.6.0
func (m *GetNodePlainSizeRequest) GetNodeId() string
func (*GetNodePlainSizeRequest) GetUserId ¶ added in v1.6.0
func (m *GetNodePlainSizeRequest) GetUserId() string
func (*GetNodePlainSizeRequest) ProtoMessage ¶ added in v1.6.0
func (*GetNodePlainSizeRequest) ProtoMessage()
func (*GetNodePlainSizeRequest) Reset ¶ added in v1.6.0
func (m *GetNodePlainSizeRequest) Reset()
func (*GetNodePlainSizeRequest) String ¶ added in v1.6.0
func (m *GetNodePlainSizeRequest) String() string
func (*GetNodePlainSizeRequest) Validate ¶ added in v1.6.0
func (this *GetNodePlainSizeRequest) Validate() error
type GetNodePlainSizeResponse ¶ added in v1.6.0
type GetNodePlainSizeResponse struct {
Size int64 `protobuf:"varint,1,opt,name=Size" json:"Size,omitempty"`
}
func (*GetNodePlainSizeResponse) Descriptor ¶ added in v1.6.0
func (*GetNodePlainSizeResponse) Descriptor() ([]byte, []int)
func (*GetNodePlainSizeResponse) GetSize ¶ added in v1.6.0
func (m *GetNodePlainSizeResponse) GetSize() int64
func (*GetNodePlainSizeResponse) ProtoMessage ¶ added in v1.6.0
func (*GetNodePlainSizeResponse) ProtoMessage()
func (*GetNodePlainSizeResponse) Reset ¶ added in v1.6.0
func (m *GetNodePlainSizeResponse) Reset()
func (*GetNodePlainSizeResponse) String ¶ added in v1.6.0
func (m *GetNodePlainSizeResponse) String() string
func (*GetNodePlainSizeResponse) Validate ¶ added in v1.6.0
func (this *GetNodePlainSizeResponse) Validate() error
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 Node ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*Node) ProtoMessage ¶ added in v1.6.0
func (*Node) ProtoMessage()
type NodeInfo ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*NodeInfo) GetNodeKey ¶ added in v1.6.0
func (*NodeInfo) ProtoMessage ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*NodeKey) GetOwnerId ¶
func (*NodeKey) ProtoMessage ¶
func (*NodeKey) ProtoMessage()
type NodeKeyManager ¶
type NodeKeyManager struct {
NodeKeyManagerHandler
}
func (*NodeKeyManager) CopyNodeInfo ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (h *NodeKeyManager) GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, out *GetNodeInfoResponse) error
func (*NodeKeyManager) GetNodePlainSize ¶ added in v1.6.0
func (h *NodeKeyManager) GetNodePlainSize(ctx context.Context, in *GetNodePlainSizeRequest, out *GetNodePlainSizeResponse) error
func (*NodeKeyManager) SetNodeInfo ¶ added in v1.6.0
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 ¶ added in v1.6.0
type NodeKeyManager_SetNodeInfoClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SetNodeInfoRequest) error }
type NodeKeyManager_SetNodeInfoStream ¶ added in v1.6.0
type NodeKeyManager_SetNodeInfoStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SetNodeInfoRequest, error) }
type RangedBlock ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*RangedBlock) Descriptor() ([]byte, []int)
func (*RangedBlock) GetBlockSize ¶ added in v1.6.0
func (m *RangedBlock) GetBlockSize() uint32
func (*RangedBlock) GetHeaderSize ¶ added in v1.6.0
func (m *RangedBlock) GetHeaderSize() uint32
func (*RangedBlock) GetOwnerId ¶ added in v1.6.0
func (m *RangedBlock) GetOwnerId() string
func (*RangedBlock) GetPartId ¶ added in v1.6.0
func (m *RangedBlock) GetPartId() uint32
func (*RangedBlock) GetSeqEnd ¶ added in v1.6.0
func (m *RangedBlock) GetSeqEnd() uint32
func (*RangedBlock) GetSeqStart ¶ added in v1.6.0
func (m *RangedBlock) GetSeqStart() uint32
func (*RangedBlock) ProtoMessage ¶ added in v1.6.0
func (*RangedBlock) ProtoMessage()
func (*RangedBlock) Reset ¶ added in v1.6.0
func (m *RangedBlock) Reset()
func (*RangedBlock) String ¶ added in v1.6.0
func (m *RangedBlock) String() string
func (*RangedBlock) Validate ¶ added in v1.6.0
func (this *RangedBlock) Validate() error
type SetNodeBlockRequest ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*SetNodeBlockRequest) Descriptor() ([]byte, []int)
func (*SetNodeBlockRequest) GetBlock ¶ added in v1.6.0
func (m *SetNodeBlockRequest) GetBlock() *Block
func (*SetNodeBlockRequest) GetNodeUuid ¶ added in v1.6.0
func (m *SetNodeBlockRequest) GetNodeUuid() string
func (*SetNodeBlockRequest) ProtoMessage ¶ added in v1.6.0
func (*SetNodeBlockRequest) ProtoMessage()
func (*SetNodeBlockRequest) Reset ¶ added in v1.6.0
func (m *SetNodeBlockRequest) Reset()
func (*SetNodeBlockRequest) String ¶ added in v1.6.0
func (m *SetNodeBlockRequest) String() string
func (*SetNodeBlockRequest) Validate ¶ added in v1.6.0
func (this *SetNodeBlockRequest) Validate() error
type SetNodeBlockResponse ¶ added in v1.6.0
type SetNodeBlockResponse struct { }
func (*SetNodeBlockResponse) Descriptor ¶ added in v1.6.0
func (*SetNodeBlockResponse) Descriptor() ([]byte, []int)
func (*SetNodeBlockResponse) ProtoMessage ¶ added in v1.6.0
func (*SetNodeBlockResponse) ProtoMessage()
func (*SetNodeBlockResponse) Reset ¶ added in v1.6.0
func (m *SetNodeBlockResponse) Reset()
func (*SetNodeBlockResponse) String ¶ added in v1.6.0
func (m *SetNodeBlockResponse) String() string
func (*SetNodeBlockResponse) Validate ¶ added in v1.6.0
func (this *SetNodeBlockResponse) Validate() error
type SetNodeInfoRequest ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*SetNodeInfoRequest) Descriptor() ([]byte, []int)
func (*SetNodeInfoRequest) GetAction ¶ added in v1.6.0
func (m *SetNodeInfoRequest) GetAction() string
func (*SetNodeInfoRequest) GetSetBlock ¶ added in v1.6.0
func (m *SetNodeInfoRequest) GetSetBlock() *SetNodeBlockRequest
func (*SetNodeInfoRequest) GetSetNodeKey ¶ added in v1.6.0
func (m *SetNodeInfoRequest) GetSetNodeKey() *SetNodeKeyRequest
func (*SetNodeInfoRequest) ProtoMessage ¶ added in v1.6.0
func (*SetNodeInfoRequest) ProtoMessage()
func (*SetNodeInfoRequest) Reset ¶ added in v1.6.0
func (m *SetNodeInfoRequest) Reset()
func (*SetNodeInfoRequest) String ¶ added in v1.6.0
func (m *SetNodeInfoRequest) String() string
func (*SetNodeInfoRequest) Validate ¶ added in v1.6.0
func (this *SetNodeInfoRequest) Validate() error
type SetNodeInfoResponse ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (*SetNodeInfoResponse) Descriptor() ([]byte, []int)
func (*SetNodeInfoResponse) GetErrorText ¶ added in v1.6.0
func (m *SetNodeInfoResponse) GetErrorText() string
func (*SetNodeInfoResponse) GetSetBlock ¶ added in v1.6.0
func (m *SetNodeInfoResponse) GetSetBlock() *SetNodeBlockResponse
func (*SetNodeInfoResponse) GetSetNodeKey ¶ added in v1.6.0
func (m *SetNodeInfoResponse) GetSetNodeKey() *SetNodeKeyResponse
func (*SetNodeInfoResponse) ProtoMessage ¶ added in v1.6.0
func (*SetNodeInfoResponse) ProtoMessage()
func (*SetNodeInfoResponse) Reset ¶ added in v1.6.0
func (m *SetNodeInfoResponse) Reset()
func (*SetNodeInfoResponse) String ¶ added in v1.6.0
func (m *SetNodeInfoResponse) String() string
func (*SetNodeInfoResponse) Validate ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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.