encryption

package
v3.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 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 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 {
	// 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 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 {
	// 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 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 {
	// 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 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 {
	// 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 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) Descriptor() ([]byte, []int)

func (*Block) GetBlockSize added in v1.6.0

func (m *Block) GetBlockSize() uint32

func (*Block) GetHeaderSize added in v1.6.0

func (m *Block) GetHeaderSize() uint32

func (*Block) GetNonce added in v1.6.0

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

func (*Block) GetOwnerId added in v1.6.0

func (m *Block) GetOwnerId() string

func (*Block) GetPartId added in v1.6.0

func (m *Block) GetPartId() uint32

func (*Block) GetPosition added in v1.6.0

func (m *Block) GetPosition() uint32

func (*Block) ProtoMessage added in v1.6.0

func (*Block) ProtoMessage()

func (*Block) Reset added in v1.6.0

func (m *Block) Reset()

func (*Block) String added in v1.6.0

func (m *Block) String() string

func (*Block) Validate added in v1.6.0

func (this *Block) Validate() error

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 {
	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 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 {
	// 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 added in v1.6.0

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 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 {
	// 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 added in v1.6.0

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 added in v1.6.0

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 added in v1.6.0

func (this *KeyInfo) Validate() error

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

func (*Node) GetLegacy added in v1.6.0

func (m *Node) GetLegacy() bool

func (*Node) GetNodeId added in v1.6.0

func (m *Node) GetNodeId() string

func (*Node) ProtoMessage added in v1.6.0

func (*Node) ProtoMessage()

func (*Node) Reset added in v1.6.0

func (m *Node) Reset()

func (*Node) String added in v1.6.0

func (m *Node) String() string

func (*Node) Validate added in v1.6.0

func (this *Node) Validate() error

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

func (*NodeInfo) GetBlock added in v1.6.0

func (m *NodeInfo) GetBlock() *Block

func (*NodeInfo) GetNode added in v1.6.0

func (m *NodeInfo) GetNode() *Node

func (*NodeInfo) GetNodeKey added in v1.6.0

func (m *NodeInfo) GetNodeKey() *NodeKey

func (*NodeInfo) ProtoMessage added in v1.6.0

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) Reset added in v1.6.0

func (m *NodeInfo) Reset()

func (*NodeInfo) String added in v1.6.0

func (m *NodeInfo) String() string

func (*NodeInfo) Validate added in v1.6.0

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 added in v1.6.0

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 added in v1.6.0

func (this *NodeKey) Validate() error

type NodeKeyManager

type NodeKeyManager struct {
	NodeKeyManagerHandler
}

func (*NodeKeyManager) CopyNodeInfo added in v1.6.0

func (*NodeKeyManager) DeleteNode

func (*NodeKeyManager) DeleteNodeKey

func (*NodeKeyManager) DeleteNodeSharedKey

func (*NodeKeyManager) GetNodeInfo added in v1.6.0

func (*NodeKeyManager) GetNodePlainSize added in v1.6.0

func (*NodeKeyManager) SetNodeInfo added in v1.6.0

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