encryption

package
v2.0.6+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Block) GetBlockSize

func (m *Block) GetBlockSize() uint32

func (*Block) GetHeaderSize

func (m *Block) GetHeaderSize() uint32

func (*Block) GetNonce

func (m *Block) GetNonce() []byte

func (*Block) GetOwnerId

func (m *Block) GetOwnerId() string

func (*Block) GetPartId

func (m *Block) GetPartId() uint32

func (*Block) GetPosition

func (m *Block) GetPosition() uint32

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) String

func (m *Block) String() string

func (*Block) Validate

func (this *Block) Validate() error

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 {
	UserId  string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"`
	OwnerId string `protobuf:"bytes,2,opt,name=OwnerId" json:"OwnerId,omitempty"`
	NodeId  string `protobuf:"bytes,3,opt,name=NodeId" json:"NodeId,omitempty"`
}

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) Descriptor() ([]byte, []int)

func (*Export) GetBy

func (m *Export) GetBy() string

func (*Export) GetDate

func (m *Export) GetDate() int32

func (*Export) ProtoMessage

func (*Export) ProtoMessage()

func (*Export) Reset

func (m *Export) Reset()

func (*Export) String

func (m *Export) String() string

func (*Export) Validate

func (this *Export) Validate() error

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) Descriptor() ([]byte, []int)

func (*Import) GetBy

func (m *Import) GetBy() string

func (*Import) GetDate

func (m *Import) GetDate() int32

func (*Import) ProtoMessage

func (*Import) ProtoMessage()

func (*Import) Reset

func (m *Import) Reset()

func (*Import) String

func (m *Import) String() string

func (*Import) Validate

func (this *Import) Validate() error

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) Descriptor() ([]byte, []int)

func (*Key) GetContent

func (m *Key) GetContent() string

func (*Key) GetCreationDate

func (m *Key) GetCreationDate() int32

func (*Key) GetID

func (m *Key) GetID() string

func (*Key) GetInfo

func (m *Key) GetInfo() *KeyInfo

func (*Key) GetLabel

func (m *Key) GetLabel() string

func (*Key) GetOwner

func (m *Key) GetOwner() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

func (*Key) Validate

func (this *Key) Validate() error

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) Descriptor() ([]byte, []int)

func (*KeyInfo) GetExports

func (m *KeyInfo) GetExports() []*Export

func (*KeyInfo) GetImports

func (m *KeyInfo) GetImports() []*Import

func (*KeyInfo) ProtoMessage

func (*KeyInfo) ProtoMessage()

func (*KeyInfo) Reset

func (m *KeyInfo) Reset()

func (*KeyInfo) String

func (m *KeyInfo) String() string

func (*KeyInfo) Validate

func (this *KeyInfo) Validate() error

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) Descriptor() ([]byte, []int)

func (*Node) GetLegacy

func (m *Node) GetLegacy() bool

func (*Node) GetNodeId

func (m *Node) GetNodeId() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

func (*Node) Validate

func (this *Node) Validate() error

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) Descriptor() ([]byte, []int)

func (*NodeInfo) GetBlock

func (m *NodeInfo) GetBlock() *Block

func (*NodeInfo) GetNode

func (m *NodeInfo) GetNode() *Node

func (*NodeInfo) GetNodeKey

func (m *NodeInfo) GetNodeKey() *NodeKey

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) Reset

func (m *NodeInfo) Reset()

func (*NodeInfo) String

func (m *NodeInfo) String() string

func (*NodeInfo) Validate

func (this *NodeInfo) Validate() error

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) Descriptor() ([]byte, []int)

func (*NodeKey) GetKeyData

func (m *NodeKey) GetKeyData() []byte

func (*NodeKey) GetNodeId

func (m *NodeKey) GetNodeId() string

func (*NodeKey) GetOwnerId

func (m *NodeKey) GetOwnerId() string

func (*NodeKey) GetUserId

func (m *NodeKey) GetUserId() string

func (*NodeKey) ProtoMessage

func (*NodeKey) ProtoMessage()

func (*NodeKey) Reset

func (m *NodeKey) Reset()

func (*NodeKey) String

func (m *NodeKey) String() string

func (*NodeKey) Validate

func (this *NodeKey) Validate() error

type NodeKeyManager

type NodeKeyManager struct {
	NodeKeyManagerHandler
}

func (*NodeKeyManager) CopyNodeInfo

func (*NodeKeyManager) DeleteNode

func (*NodeKeyManager) DeleteNodeKey

func (*NodeKeyManager) DeleteNodeSharedKey

func (*NodeKeyManager) GetNodeInfo

func (*NodeKeyManager) GetNodePlainSize

func (*NodeKeyManager) SetNodeInfo

func (h *NodeKeyManager) SetNodeInfo(ctx context.Context, stream server.Streamer) 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 (*UserKeyStore) AdminDeleteKey

func (*UserKeyStore) AdminExportKey

func (*UserKeyStore) AdminImportKey

func (*UserKeyStore) AdminListKeys

func (*UserKeyStore) GetKey

func (h *UserKeyStore) GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error

type UserKeyStoreClient

func NewUserKeyStoreClient

func NewUserKeyStoreClient(serviceName string, c client.Client) UserKeyStoreClient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL