Documentation
¶
Index ¶
- Variables
- type BlockInfo
- func (*BlockInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BlockInfo) GetHash() []byte
- func (x *BlockInfo) GetOffset() int64
- func (x *BlockInfo) GetSize() int32
- func (x *BlockInfo) GetWeakHash() uint32
- func (*BlockInfo) ProtoMessage()
- func (x *BlockInfo) ProtoReflect() protoreflect.Message
- func (x *BlockInfo) Reset()
- func (x *BlockInfo) String() string
- type Close
- type ClusterConfig
- func (*ClusterConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterConfig) GetFolders() []*Folder
- func (x *ClusterConfig) GetSecondary() bool
- func (*ClusterConfig) ProtoMessage()
- func (x *ClusterConfig) ProtoReflect() protoreflect.Message
- func (x *ClusterConfig) Reset()
- func (x *ClusterConfig) String() string
- type Compression
- func (Compression) Descriptor() protoreflect.EnumDescriptor
- func (x Compression) Enum() *Compression
- func (Compression) EnumDescriptor() ([]byte, []int)deprecated
- func (x Compression) Number() protoreflect.EnumNumber
- func (x Compression) String() string
- func (Compression) Type() protoreflect.EnumType
- type Counter
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetAddresses() []string
- func (x *Device) GetCertName() string
- func (x *Device) GetCompression() Compression
- func (x *Device) GetEncryptionPasswordToken() []byte
- func (x *Device) GetId() []byte
- func (x *Device) GetIndexId() uint64
- func (x *Device) GetIntroducer() bool
- func (x *Device) GetMaxSequence() int64
- func (x *Device) GetName() string
- func (x *Device) GetSkipIntroductionRemovals() bool
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type DownloadProgress
- func (*DownloadProgress) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadProgress) GetFolder() string
- func (x *DownloadProgress) GetUpdates() []*FileDownloadProgressUpdate
- func (*DownloadProgress) ProtoMessage()
- func (x *DownloadProgress) ProtoReflect() protoreflect.Message
- func (x *DownloadProgress) Reset()
- func (x *DownloadProgress) String() string
- type ErrorCode
- type FileDownloadProgressUpdate
- func (*FileDownloadProgressUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *FileDownloadProgressUpdate) GetBlockIndexes() []int32
- func (x *FileDownloadProgressUpdate) GetBlockSize() int32
- func (x *FileDownloadProgressUpdate) GetName() string
- func (x *FileDownloadProgressUpdate) GetUpdateType() FileDownloadProgressUpdateType
- func (x *FileDownloadProgressUpdate) GetVersion() *Vector
- func (*FileDownloadProgressUpdate) ProtoMessage()
- func (x *FileDownloadProgressUpdate) ProtoReflect() protoreflect.Message
- func (x *FileDownloadProgressUpdate) Reset()
- func (x *FileDownloadProgressUpdate) String() string
- type FileDownloadProgressUpdateType
- func (FileDownloadProgressUpdateType) Descriptor() protoreflect.EnumDescriptor
- func (x FileDownloadProgressUpdateType) Enum() *FileDownloadProgressUpdateType
- func (FileDownloadProgressUpdateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FileDownloadProgressUpdateType) Number() protoreflect.EnumNumber
- func (x FileDownloadProgressUpdateType) String() string
- func (FileDownloadProgressUpdateType) Type() protoreflect.EnumType
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FileInfo) GetBlockSize() int32
- func (x *FileInfo) GetBlocks() []*BlockInfo
- func (x *FileInfo) GetBlocksHash() []byte
- func (x *FileInfo) GetDeleted() bool
- func (x *FileInfo) GetEncrypted() []byte
- func (x *FileInfo) GetEncryptionTrailerSize() int32
- func (x *FileInfo) GetInodeChangeNs() int64
- func (x *FileInfo) GetInvalid() bool
- func (x *FileInfo) GetLocalFlags() uint32
- func (x *FileInfo) GetModifiedBy() uint64
- func (x *FileInfo) GetModifiedNs() int32
- func (x *FileInfo) GetModifiedS() int64
- func (x *FileInfo) GetName() string
- func (x *FileInfo) GetNoPermissions() bool
- func (x *FileInfo) GetPermissions() uint32
- func (x *FileInfo) GetPlatform() *PlatformData
- func (x *FileInfo) GetSequence() int64
- func (x *FileInfo) GetSize() int64
- func (x *FileInfo) GetSymlinkTarget() string
- func (x *FileInfo) GetType() FileInfoType
- func (x *FileInfo) GetVersion() *Vector
- func (x *FileInfo) GetVersionHash() []byte
- func (*FileInfo) ProtoMessage()
- func (x *FileInfo) ProtoReflect() protoreflect.Message
- func (x *FileInfo) Reset()
- func (x *FileInfo) String() string
- type FileInfoType
- func (FileInfoType) Descriptor() protoreflect.EnumDescriptor
- func (x FileInfoType) Enum() *FileInfoType
- func (FileInfoType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FileInfoType) Number() protoreflect.EnumNumber
- func (x FileInfoType) String() string
- func (FileInfoType) Type() protoreflect.EnumType
- type Folder
- func (*Folder) Descriptor() ([]byte, []int)deprecated
- func (x *Folder) GetDevices() []*Device
- func (x *Folder) GetDisableTempIndexes() bool
- func (x *Folder) GetId() string
- func (x *Folder) GetIgnoreDelete() bool
- func (x *Folder) GetIgnorePermissions() bool
- func (x *Folder) GetLabel() string
- func (x *Folder) GetPaused() bool
- func (x *Folder) GetReadOnly() bool
- func (*Folder) ProtoMessage()
- func (x *Folder) ProtoReflect() protoreflect.Message
- func (x *Folder) Reset()
- func (x *Folder) String() string
- type Header
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)deprecated
- func (x *Hello) GetClientName() string
- func (x *Hello) GetClientVersion() string
- func (x *Hello) GetDeviceName() string
- func (x *Hello) GetNumConnections() int32
- func (x *Hello) GetTimestamp() int64
- func (*Hello) ProtoMessage()
- func (x *Hello) ProtoReflect() protoreflect.Message
- func (x *Hello) Reset()
- func (x *Hello) String() string
- type Index
- func (*Index) Descriptor() ([]byte, []int)deprecated
- func (x *Index) GetFiles() []*FileInfo
- func (x *Index) GetFolder() string
- func (x *Index) GetLastSequence() int64
- func (*Index) ProtoMessage()
- func (x *Index) ProtoReflect() protoreflect.Message
- func (x *Index) Reset()
- func (x *Index) String() string
- type IndexUpdate
- func (*IndexUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *IndexUpdate) GetFiles() []*FileInfo
- func (x *IndexUpdate) GetFolder() string
- func (x *IndexUpdate) GetLastSequence() int64
- func (x *IndexUpdate) GetPrevSequence() int64
- func (*IndexUpdate) ProtoMessage()
- func (x *IndexUpdate) ProtoReflect() protoreflect.Message
- func (x *IndexUpdate) Reset()
- func (x *IndexUpdate) String() string
- type MessageCompression
- func (MessageCompression) Descriptor() protoreflect.EnumDescriptor
- func (x MessageCompression) Enum() *MessageCompression
- func (MessageCompression) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageCompression) Number() protoreflect.EnumNumber
- func (x MessageCompression) String() string
- func (MessageCompression) Type() protoreflect.EnumType
- type MessageType
- func (MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageType) Enum() *MessageType
- func (MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageType) Number() protoreflect.EnumNumber
- func (x MessageType) String() string
- func (MessageType) Type() protoreflect.EnumType
- type Ping
- type PlatformData
- func (*PlatformData) Descriptor() ([]byte, []int)deprecated
- func (x *PlatformData) GetDarwin() *XattrData
- func (x *PlatformData) GetFreebsd() *XattrData
- func (x *PlatformData) GetLinux() *XattrData
- func (x *PlatformData) GetNetbsd() *XattrData
- func (x *PlatformData) GetUnix() *UnixData
- func (x *PlatformData) GetWindows() *WindowsData
- func (*PlatformData) ProtoMessage()
- func (x *PlatformData) ProtoReflect() protoreflect.Message
- func (x *PlatformData) Reset()
- func (x *PlatformData) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBlockNo() int32
- func (x *Request) GetFolder() string
- func (x *Request) GetFromTemporary() bool
- func (x *Request) GetHash() []byte
- func (x *Request) GetId() int32
- func (x *Request) GetName() string
- func (x *Request) GetOffset() int64
- func (x *Request) GetSize() int32
- func (x *Request) GetWeakHash() uint32
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCode() ErrorCode
- func (x *Response) GetData() []byte
- func (x *Response) GetId() int32
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type UnixData
- func (*UnixData) Descriptor() ([]byte, []int)deprecated
- func (x *UnixData) GetGid() int32
- func (x *UnixData) GetGroupName() string
- func (x *UnixData) GetOwnerName() string
- func (x *UnixData) GetUid() int32
- func (*UnixData) ProtoMessage()
- func (x *UnixData) ProtoReflect() protoreflect.Message
- func (x *UnixData) Reset()
- func (x *UnixData) String() string
- type Vector
- type WindowsData
- func (*WindowsData) Descriptor() ([]byte, []int)deprecated
- func (x *WindowsData) GetOwnerIsGroup() bool
- func (x *WindowsData) GetOwnerName() string
- func (*WindowsData) ProtoMessage()
- func (x *WindowsData) ProtoReflect() protoreflect.Message
- func (x *WindowsData) Reset()
- func (x *WindowsData) String() string
- type Xattr
- type XattrData
Constants ¶
This section is empty.
Variables ¶
var ( MessageType_name = map[int32]string{ 0: "MESSAGE_TYPE_CLUSTER_CONFIG", 1: "MESSAGE_TYPE_INDEX", 2: "MESSAGE_TYPE_INDEX_UPDATE", 3: "MESSAGE_TYPE_REQUEST", 4: "MESSAGE_TYPE_RESPONSE", 5: "MESSAGE_TYPE_DOWNLOAD_PROGRESS", 6: "MESSAGE_TYPE_PING", 7: "MESSAGE_TYPE_CLOSE", } MessageType_value = map[string]int32{ "MESSAGE_TYPE_CLUSTER_CONFIG": 0, "MESSAGE_TYPE_INDEX": 1, "MESSAGE_TYPE_INDEX_UPDATE": 2, "MESSAGE_TYPE_REQUEST": 3, "MESSAGE_TYPE_RESPONSE": 4, "MESSAGE_TYPE_DOWNLOAD_PROGRESS": 5, "MESSAGE_TYPE_PING": 6, "MESSAGE_TYPE_CLOSE": 7, } )
Enum value maps for MessageType.
var ( MessageCompression_name = map[int32]string{ 0: "MESSAGE_COMPRESSION_NONE", 1: "MESSAGE_COMPRESSION_LZ4", } MessageCompression_value = map[string]int32{ "MESSAGE_COMPRESSION_NONE": 0, "MESSAGE_COMPRESSION_LZ4": 1, } )
Enum value maps for MessageCompression.
var ( Compression_name = map[int32]string{ 0: "COMPRESSION_METADATA", 1: "COMPRESSION_NEVER", 2: "COMPRESSION_ALWAYS", } Compression_value = map[string]int32{ "COMPRESSION_METADATA": 0, "COMPRESSION_NEVER": 1, "COMPRESSION_ALWAYS": 2, } )
Enum value maps for Compression.
var ( FileInfoType_name = map[int32]string{ 0: "FILE_INFO_TYPE_FILE", 1: "FILE_INFO_TYPE_DIRECTORY", 2: "FILE_INFO_TYPE_SYMLINK_FILE", 3: "FILE_INFO_TYPE_SYMLINK_DIRECTORY", 4: "FILE_INFO_TYPE_SYMLINK", } FileInfoType_value = map[string]int32{ "FILE_INFO_TYPE_FILE": 0, "FILE_INFO_TYPE_DIRECTORY": 1, "FILE_INFO_TYPE_SYMLINK_FILE": 2, "FILE_INFO_TYPE_SYMLINK_DIRECTORY": 3, "FILE_INFO_TYPE_SYMLINK": 4, } )
Enum value maps for FileInfoType.
var ( ErrorCode_name = map[int32]string{ 0: "ERROR_CODE_NO_ERROR", 1: "ERROR_CODE_GENERIC", 2: "ERROR_CODE_NO_SUCH_FILE", 3: "ERROR_CODE_INVALID_FILE", } ErrorCode_value = map[string]int32{ "ERROR_CODE_NO_ERROR": 0, "ERROR_CODE_GENERIC": 1, "ERROR_CODE_NO_SUCH_FILE": 2, "ERROR_CODE_INVALID_FILE": 3, } )
Enum value maps for ErrorCode.
var ( FileDownloadProgressUpdateType_name = map[int32]string{ 0: "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_APPEND", 1: "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_FORGET", } FileDownloadProgressUpdateType_value = map[string]int32{ "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_APPEND": 0, "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_FORGET": 1, } )
Enum value maps for FileDownloadProgressUpdateType.
var File_bep_bep_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BlockInfo ¶
type BlockInfo struct {
Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
WeakHash uint32 `protobuf:"varint,4,opt,name=weak_hash,json=weakHash,proto3" json:"weak_hash,omitempty"`
// contains filtered or unexported fields
}
func (*BlockInfo) Descriptor
deprecated
func (*BlockInfo) GetWeakHash ¶
func (*BlockInfo) ProtoMessage ¶
func (*BlockInfo) ProtoMessage()
func (*BlockInfo) ProtoReflect ¶
func (x *BlockInfo) ProtoReflect() protoreflect.Message
type Close ¶
type Close struct {
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*Close) Descriptor
deprecated
func (*Close) ProtoMessage ¶
func (*Close) ProtoMessage()
func (*Close) ProtoReflect ¶
func (x *Close) ProtoReflect() protoreflect.Message
type ClusterConfig ¶
type ClusterConfig struct {
Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
Secondary bool `protobuf:"varint,2,opt,name=secondary,proto3" json:"secondary,omitempty"`
// contains filtered or unexported fields
}
func (*ClusterConfig) Descriptor
deprecated
func (*ClusterConfig) Descriptor() ([]byte, []int)
Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead.
func (*ClusterConfig) GetFolders ¶
func (x *ClusterConfig) GetFolders() []*Folder
func (*ClusterConfig) GetSecondary ¶
func (x *ClusterConfig) GetSecondary() bool
func (*ClusterConfig) ProtoMessage ¶
func (*ClusterConfig) ProtoMessage()
func (*ClusterConfig) ProtoReflect ¶
func (x *ClusterConfig) ProtoReflect() protoreflect.Message
func (*ClusterConfig) Reset ¶
func (x *ClusterConfig) Reset()
func (*ClusterConfig) String ¶
func (x *ClusterConfig) String() string
type Compression ¶
type Compression int32
const ( Compression_COMPRESSION_METADATA Compression = 0 Compression_COMPRESSION_NEVER Compression = 1 Compression_COMPRESSION_ALWAYS Compression = 2 )
func (Compression) Descriptor ¶
func (Compression) Descriptor() protoreflect.EnumDescriptor
func (Compression) Enum ¶
func (x Compression) Enum() *Compression
func (Compression) EnumDescriptor
deprecated
func (Compression) EnumDescriptor() ([]byte, []int)
Deprecated: Use Compression.Descriptor instead.
func (Compression) Number ¶
func (x Compression) Number() protoreflect.EnumNumber
func (Compression) String ¶
func (x Compression) String() string
func (Compression) Type ¶
func (Compression) Type() protoreflect.EnumType
type Counter ¶
type Counter struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Counter) Descriptor
deprecated
func (*Counter) ProtoMessage ¶
func (*Counter) ProtoMessage()
func (*Counter) ProtoReflect ¶
func (x *Counter) ProtoReflect() protoreflect.Message
type Device ¶
type Device struct {
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"`
Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=bep.Compression" json:"compression,omitempty"`
CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"cert_name,omitempty"`
MaxSequence int64 `protobuf:"varint,6,opt,name=max_sequence,json=maxSequence,proto3" json:"max_sequence,omitempty"`
Introducer bool `protobuf:"varint,7,opt,name=introducer,proto3" json:"introducer,omitempty"`
IndexId uint64 `protobuf:"varint,8,opt,name=index_id,json=indexId,proto3" json:"index_id,omitempty"`
SkipIntroductionRemovals bool `` /* 136-byte string literal not displayed */
EncryptionPasswordToken []byte `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Device) Descriptor
deprecated
func (*Device) GetAddresses ¶
func (*Device) GetCertName ¶
func (*Device) GetCompression ¶
func (x *Device) GetCompression() Compression
func (*Device) GetEncryptionPasswordToken ¶
func (*Device) GetIndexId ¶
func (*Device) GetIntroducer ¶
func (*Device) GetMaxSequence ¶
func (*Device) GetSkipIntroductionRemovals ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type DownloadProgress ¶
type DownloadProgress struct {
Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
Updates []*FileDownloadProgressUpdate `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadProgress) Descriptor
deprecated
func (*DownloadProgress) Descriptor() ([]byte, []int)
Deprecated: Use DownloadProgress.ProtoReflect.Descriptor instead.
func (*DownloadProgress) GetFolder ¶
func (x *DownloadProgress) GetFolder() string
func (*DownloadProgress) GetUpdates ¶
func (x *DownloadProgress) GetUpdates() []*FileDownloadProgressUpdate
func (*DownloadProgress) ProtoMessage ¶
func (*DownloadProgress) ProtoMessage()
func (*DownloadProgress) ProtoReflect ¶
func (x *DownloadProgress) ProtoReflect() protoreflect.Message
func (*DownloadProgress) Reset ¶
func (x *DownloadProgress) Reset()
func (*DownloadProgress) String ¶
func (x *DownloadProgress) String() string
type ErrorCode ¶
type ErrorCode int32
func (ErrorCode) Descriptor ¶
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorCode) EnumDescriptor
deprecated
func (ErrorCode) Number ¶
func (x ErrorCode) Number() protoreflect.EnumNumber
func (ErrorCode) Type ¶
func (ErrorCode) Type() protoreflect.EnumType
type FileDownloadProgressUpdate ¶
type FileDownloadProgressUpdate struct {
UpdateType FileDownloadProgressUpdateType `` /* 132-byte string literal not displayed */
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Version *Vector `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
BlockIndexes []int32 `protobuf:"varint,4,rep,name=block_indexes,json=blockIndexes,proto3" json:"block_indexes,omitempty"`
BlockSize int32 `protobuf:"varint,5,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
// contains filtered or unexported fields
}
func (*FileDownloadProgressUpdate) Descriptor
deprecated
func (*FileDownloadProgressUpdate) Descriptor() ([]byte, []int)
Deprecated: Use FileDownloadProgressUpdate.ProtoReflect.Descriptor instead.
func (*FileDownloadProgressUpdate) GetBlockIndexes ¶
func (x *FileDownloadProgressUpdate) GetBlockIndexes() []int32
func (*FileDownloadProgressUpdate) GetBlockSize ¶
func (x *FileDownloadProgressUpdate) GetBlockSize() int32
func (*FileDownloadProgressUpdate) GetName ¶
func (x *FileDownloadProgressUpdate) GetName() string
func (*FileDownloadProgressUpdate) GetUpdateType ¶
func (x *FileDownloadProgressUpdate) GetUpdateType() FileDownloadProgressUpdateType
func (*FileDownloadProgressUpdate) GetVersion ¶
func (x *FileDownloadProgressUpdate) GetVersion() *Vector
func (*FileDownloadProgressUpdate) ProtoMessage ¶
func (*FileDownloadProgressUpdate) ProtoMessage()
func (*FileDownloadProgressUpdate) ProtoReflect ¶
func (x *FileDownloadProgressUpdate) ProtoReflect() protoreflect.Message
func (*FileDownloadProgressUpdate) Reset ¶
func (x *FileDownloadProgressUpdate) Reset()
func (*FileDownloadProgressUpdate) String ¶
func (x *FileDownloadProgressUpdate) String() string
type FileDownloadProgressUpdateType ¶
type FileDownloadProgressUpdateType int32
const ( FileDownloadProgressUpdateType_FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_APPEND FileDownloadProgressUpdateType = 0 FileDownloadProgressUpdateType_FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_FORGET FileDownloadProgressUpdateType = 1 )
func (FileDownloadProgressUpdateType) Descriptor ¶
func (FileDownloadProgressUpdateType) Descriptor() protoreflect.EnumDescriptor
func (FileDownloadProgressUpdateType) Enum ¶
func (x FileDownloadProgressUpdateType) Enum() *FileDownloadProgressUpdateType
func (FileDownloadProgressUpdateType) EnumDescriptor
deprecated
func (FileDownloadProgressUpdateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FileDownloadProgressUpdateType.Descriptor instead.
func (FileDownloadProgressUpdateType) Number ¶
func (x FileDownloadProgressUpdateType) Number() protoreflect.EnumNumber
func (FileDownloadProgressUpdateType) String ¶
func (x FileDownloadProgressUpdateType) String() string
func (FileDownloadProgressUpdateType) Type ¶
func (FileDownloadProgressUpdateType) Type() protoreflect.EnumType
type FileInfo ¶
type FileInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
ModifiedS int64 `protobuf:"varint,5,opt,name=modified_s,json=modifiedS,proto3" json:"modified_s,omitempty"`
ModifiedBy uint64 `protobuf:"varint,12,opt,name=modified_by,json=modifiedBy,proto3" json:"modified_by,omitempty"`
Version *Vector `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"`
Sequence int64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"`
Blocks []*BlockInfo `protobuf:"bytes,16,rep,name=blocks,proto3" json:"blocks,omitempty"`
SymlinkTarget string `protobuf:"bytes,17,opt,name=symlink_target,json=symlinkTarget,proto3" json:"symlink_target,omitempty"`
BlocksHash []byte `protobuf:"bytes,18,opt,name=blocks_hash,json=blocksHash,proto3" json:"blocks_hash,omitempty"`
Encrypted []byte `protobuf:"bytes,19,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
Type FileInfoType `protobuf:"varint,2,opt,name=type,proto3,enum=bep.FileInfoType" json:"type,omitempty"`
Permissions uint32 `protobuf:"varint,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
ModifiedNs int32 `protobuf:"varint,11,opt,name=modified_ns,json=modifiedNs,proto3" json:"modified_ns,omitempty"`
BlockSize int32 `protobuf:"varint,13,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
Platform *PlatformData `protobuf:"bytes,14,opt,name=platform,proto3" json:"platform,omitempty"`
// The local_flags fields stores flags that are relevant to the local
// host only. It is not part of the protocol, doesn't get sent or
// received (we make sure to zero it), nonetheless we need it on our
// struct and to be able to serialize it to/from the database.
LocalFlags uint32 `protobuf:"varint,1000,opt,name=local_flags,json=localFlags,proto3" json:"local_flags,omitempty"`
// The version_hash is an implementation detail and not part of the wire
// format.
VersionHash []byte `protobuf:"bytes,1001,opt,name=version_hash,json=versionHash,proto3" json:"version_hash,omitempty"`
// The time when the inode was last changed (i.e., permissions, xattrs
// etc changed). This is host-local, not sent over the wire.
InodeChangeNs int64 `protobuf:"varint,1002,opt,name=inode_change_ns,json=inodeChangeNs,proto3" json:"inode_change_ns,omitempty"`
// The size of the data appended to the encrypted file on disk. This is
// host-local, not sent over the wire.
EncryptionTrailerSize int32 `` /* 130-byte string literal not displayed */
Deleted bool `protobuf:"varint,6,opt,name=deleted,proto3" json:"deleted,omitempty"`
Invalid bool `protobuf:"varint,7,opt,name=invalid,proto3" json:"invalid,omitempty"`
NoPermissions bool `protobuf:"varint,8,opt,name=no_permissions,json=noPermissions,proto3" json:"no_permissions,omitempty"`
// contains filtered or unexported fields
}
func (*FileInfo) Descriptor
deprecated
func (*FileInfo) GetBlockSize ¶
func (*FileInfo) GetBlocksHash ¶
func (*FileInfo) GetDeleted ¶
func (*FileInfo) GetEncrypted ¶
func (*FileInfo) GetEncryptionTrailerSize ¶
func (*FileInfo) GetInodeChangeNs ¶
func (*FileInfo) GetInvalid ¶
func (*FileInfo) GetLocalFlags ¶
func (*FileInfo) GetModifiedBy ¶
func (*FileInfo) GetModifiedNs ¶
func (*FileInfo) GetModifiedS ¶
func (*FileInfo) GetNoPermissions ¶
func (*FileInfo) GetPermissions ¶
func (*FileInfo) GetPlatform ¶
func (x *FileInfo) GetPlatform() *PlatformData
func (*FileInfo) GetSequence ¶
func (*FileInfo) GetSymlinkTarget ¶
func (*FileInfo) GetType ¶
func (x *FileInfo) GetType() FileInfoType
func (*FileInfo) GetVersion ¶
func (*FileInfo) GetVersionHash ¶
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) ProtoReflect ¶
func (x *FileInfo) ProtoReflect() protoreflect.Message
type FileInfoType ¶
type FileInfoType int32
const ( FileInfoType_FILE_INFO_TYPE_FILE FileInfoType = 0 FileInfoType_FILE_INFO_TYPE_DIRECTORY FileInfoType = 1 // Deprecated: Marked as deprecated in bep/bep.proto. FileInfoType_FILE_INFO_TYPE_SYMLINK_FILE FileInfoType = 2 // Deprecated: Marked as deprecated in bep/bep.proto. FileInfoType_FILE_INFO_TYPE_SYMLINK_DIRECTORY FileInfoType = 3 FileInfoType_FILE_INFO_TYPE_SYMLINK FileInfoType = 4 )
func (FileInfoType) Descriptor ¶
func (FileInfoType) Descriptor() protoreflect.EnumDescriptor
func (FileInfoType) Enum ¶
func (x FileInfoType) Enum() *FileInfoType
func (FileInfoType) EnumDescriptor
deprecated
func (FileInfoType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FileInfoType.Descriptor instead.
func (FileInfoType) Number ¶
func (x FileInfoType) Number() protoreflect.EnumNumber
func (FileInfoType) String ¶
func (x FileInfoType) String() string
func (FileInfoType) Type ¶
func (FileInfoType) Type() protoreflect.EnumType
type Folder ¶
type Folder struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
IgnorePermissions bool `protobuf:"varint,4,opt,name=ignore_permissions,json=ignorePermissions,proto3" json:"ignore_permissions,omitempty"`
IgnoreDelete bool `protobuf:"varint,5,opt,name=ignore_delete,json=ignoreDelete,proto3" json:"ignore_delete,omitempty"`
DisableTempIndexes bool `protobuf:"varint,6,opt,name=disable_temp_indexes,json=disableTempIndexes,proto3" json:"disable_temp_indexes,omitempty"`
Paused bool `protobuf:"varint,7,opt,name=paused,proto3" json:"paused,omitempty"`
Devices []*Device `protobuf:"bytes,16,rep,name=devices,proto3" json:"devices,omitempty"`
// contains filtered or unexported fields
}
func (*Folder) Descriptor
deprecated
func (*Folder) GetDevices ¶
func (*Folder) GetDisableTempIndexes ¶
func (*Folder) GetIgnoreDelete ¶
func (*Folder) GetIgnorePermissions ¶
func (*Folder) GetReadOnly ¶
func (*Folder) ProtoMessage ¶
func (*Folder) ProtoMessage()
func (*Folder) ProtoReflect ¶
func (x *Folder) ProtoReflect() protoreflect.Message
type Header ¶
type Header struct {
Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=bep.MessageType" json:"type,omitempty"`
Compression MessageCompression `protobuf:"varint,2,opt,name=compression,proto3,enum=bep.MessageCompression" json:"compression,omitempty"`
// contains filtered or unexported fields
}
func (*Header) Descriptor
deprecated
func (*Header) GetCompression ¶
func (x *Header) GetCompression() MessageCompression
func (*Header) GetType ¶
func (x *Header) GetType() MessageType
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type Hello ¶
type Hello struct {
DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
ClientName string `protobuf:"bytes,2,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
NumConnections int32 `protobuf:"varint,4,opt,name=num_connections,json=numConnections,proto3" json:"num_connections,omitempty"`
Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
func (*Hello) Descriptor
deprecated
func (*Hello) GetClientName ¶
func (*Hello) GetClientVersion ¶
func (*Hello) GetDeviceName ¶
func (*Hello) GetNumConnections ¶
func (*Hello) GetTimestamp ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) ProtoReflect ¶
func (x *Hello) ProtoReflect() protoreflect.Message
type Index ¶
type Index struct {
Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
Files []*FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
LastSequence int64 `protobuf:"varint,3,opt,name=last_sequence,json=lastSequence,proto3" json:"last_sequence,omitempty"` // the highest sequence in this batch
// contains filtered or unexported fields
}
func (*Index) Descriptor
deprecated
func (*Index) GetLastSequence ¶
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) ProtoReflect ¶
func (x *Index) ProtoReflect() protoreflect.Message
type IndexUpdate ¶
type IndexUpdate struct {
Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
Files []*FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
LastSequence int64 `protobuf:"varint,3,opt,name=last_sequence,json=lastSequence,proto3" json:"last_sequence,omitempty"` // the highest sequence in this batch
PrevSequence int64 `protobuf:"varint,4,opt,name=prev_sequence,json=prevSequence,proto3" json:"prev_sequence,omitempty"` // the highest sequence in the previous batch
// contains filtered or unexported fields
}
func (*IndexUpdate) Descriptor
deprecated
func (*IndexUpdate) Descriptor() ([]byte, []int)
Deprecated: Use IndexUpdate.ProtoReflect.Descriptor instead.
func (*IndexUpdate) GetFiles ¶
func (x *IndexUpdate) GetFiles() []*FileInfo
func (*IndexUpdate) GetFolder ¶
func (x *IndexUpdate) GetFolder() string
func (*IndexUpdate) GetLastSequence ¶
func (x *IndexUpdate) GetLastSequence() int64
func (*IndexUpdate) GetPrevSequence ¶
func (x *IndexUpdate) GetPrevSequence() int64
func (*IndexUpdate) ProtoMessage ¶
func (*IndexUpdate) ProtoMessage()
func (*IndexUpdate) ProtoReflect ¶
func (x *IndexUpdate) ProtoReflect() protoreflect.Message
func (*IndexUpdate) Reset ¶
func (x *IndexUpdate) Reset()
func (*IndexUpdate) String ¶
func (x *IndexUpdate) String() string
type MessageCompression ¶
type MessageCompression int32
const ( MessageCompression_MESSAGE_COMPRESSION_NONE MessageCompression = 0 MessageCompression_MESSAGE_COMPRESSION_LZ4 MessageCompression = 1 )
func (MessageCompression) Descriptor ¶
func (MessageCompression) Descriptor() protoreflect.EnumDescriptor
func (MessageCompression) Enum ¶
func (x MessageCompression) Enum() *MessageCompression
func (MessageCompression) EnumDescriptor
deprecated
func (MessageCompression) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageCompression.Descriptor instead.
func (MessageCompression) Number ¶
func (x MessageCompression) Number() protoreflect.EnumNumber
func (MessageCompression) String ¶
func (x MessageCompression) String() string
func (MessageCompression) Type ¶
func (MessageCompression) Type() protoreflect.EnumType
type MessageType ¶
type MessageType int32
const ( MessageType_MESSAGE_TYPE_CLUSTER_CONFIG MessageType = 0 MessageType_MESSAGE_TYPE_INDEX MessageType = 1 MessageType_MESSAGE_TYPE_INDEX_UPDATE MessageType = 2 MessageType_MESSAGE_TYPE_REQUEST MessageType = 3 MessageType_MESSAGE_TYPE_RESPONSE MessageType = 4 MessageType_MESSAGE_TYPE_DOWNLOAD_PROGRESS MessageType = 5 MessageType_MESSAGE_TYPE_PING MessageType = 6 MessageType_MESSAGE_TYPE_CLOSE MessageType = 7 )
func (MessageType) Descriptor ¶
func (MessageType) Descriptor() protoreflect.EnumDescriptor
func (MessageType) Enum ¶
func (x MessageType) Enum() *MessageType
func (MessageType) EnumDescriptor
deprecated
func (MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageType.Descriptor instead.
func (MessageType) Number ¶
func (x MessageType) Number() protoreflect.EnumNumber
func (MessageType) String ¶
func (x MessageType) String() string
func (MessageType) Type ¶
func (MessageType) Type() protoreflect.EnumType
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type PlatformData ¶
type PlatformData struct {
Unix *UnixData `protobuf:"bytes,1,opt,name=unix,proto3" json:"unix,omitempty"`
Windows *WindowsData `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
Linux *XattrData `protobuf:"bytes,3,opt,name=linux,proto3" json:"linux,omitempty"`
Darwin *XattrData `protobuf:"bytes,4,opt,name=darwin,proto3" json:"darwin,omitempty"`
Freebsd *XattrData `protobuf:"bytes,5,opt,name=freebsd,proto3" json:"freebsd,omitempty"`
Netbsd *XattrData `protobuf:"bytes,6,opt,name=netbsd,proto3" json:"netbsd,omitempty"`
// contains filtered or unexported fields
}
func (*PlatformData) Descriptor
deprecated
func (*PlatformData) Descriptor() ([]byte, []int)
Deprecated: Use PlatformData.ProtoReflect.Descriptor instead.
func (*PlatformData) GetDarwin ¶
func (x *PlatformData) GetDarwin() *XattrData
func (*PlatformData) GetFreebsd ¶
func (x *PlatformData) GetFreebsd() *XattrData
func (*PlatformData) GetLinux ¶
func (x *PlatformData) GetLinux() *XattrData
func (*PlatformData) GetNetbsd ¶
func (x *PlatformData) GetNetbsd() *XattrData
func (*PlatformData) GetUnix ¶
func (x *PlatformData) GetUnix() *UnixData
func (*PlatformData) GetWindows ¶
func (x *PlatformData) GetWindows() *WindowsData
func (*PlatformData) ProtoMessage ¶
func (*PlatformData) ProtoMessage()
func (*PlatformData) ProtoReflect ¶
func (x *PlatformData) ProtoReflect() protoreflect.Message
func (*PlatformData) Reset ¶
func (x *PlatformData) Reset()
func (*PlatformData) String ¶
func (x *PlatformData) String() string
type Request ¶
type Request struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
Size int32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
FromTemporary bool `protobuf:"varint,7,opt,name=from_temporary,json=fromTemporary,proto3" json:"from_temporary,omitempty"`
WeakHash uint32 `protobuf:"varint,8,opt,name=weak_hash,json=weakHash,proto3" json:"weak_hash,omitempty"`
BlockNo int32 `protobuf:"varint,9,opt,name=block_no,json=blockNo,proto3" json:"block_no,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetBlockNo ¶
func (*Request) GetFromTemporary ¶
func (*Request) GetWeakHash ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Code ErrorCode `protobuf:"varint,3,opt,name=code,proto3,enum=bep.ErrorCode" json:"code,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnixData ¶
type UnixData struct {
// The owner name and group name are set when known (i.e., could be
// resolved on the source device), while the UID and GID are always set
// as they come directly from the stat() call.
OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"`
GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
Uid int32 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"`
Gid int32 `protobuf:"varint,4,opt,name=gid,proto3" json:"gid,omitempty"`
// contains filtered or unexported fields
}
func (*UnixData) Descriptor
deprecated
func (*UnixData) GetGroupName ¶
func (*UnixData) GetOwnerName ¶
func (*UnixData) ProtoMessage ¶
func (*UnixData) ProtoMessage()
func (*UnixData) ProtoReflect ¶
func (x *UnixData) ProtoReflect() protoreflect.Message
type Vector ¶
type Vector struct {
Counters []*Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters,omitempty"`
// contains filtered or unexported fields
}
func (*Vector) Descriptor
deprecated
func (*Vector) GetCounters ¶
func (*Vector) ProtoMessage ¶
func (*Vector) ProtoMessage()
func (*Vector) ProtoReflect ¶
func (x *Vector) ProtoReflect() protoreflect.Message
type WindowsData ¶
type WindowsData struct {
// Windows file objects have a single owner, which may be a user or a
// group. We keep the name of that account, and a flag to indicate what
// type it is.
OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"`
OwnerIsGroup bool `protobuf:"varint,2,opt,name=owner_is_group,json=ownerIsGroup,proto3" json:"owner_is_group,omitempty"`
// contains filtered or unexported fields
}
func (*WindowsData) Descriptor
deprecated
func (*WindowsData) Descriptor() ([]byte, []int)
Deprecated: Use WindowsData.ProtoReflect.Descriptor instead.
func (*WindowsData) GetOwnerIsGroup ¶
func (x *WindowsData) GetOwnerIsGroup() bool
func (*WindowsData) GetOwnerName ¶
func (x *WindowsData) GetOwnerName() string
func (*WindowsData) ProtoMessage ¶
func (*WindowsData) ProtoMessage()
func (*WindowsData) ProtoReflect ¶
func (x *WindowsData) ProtoReflect() protoreflect.Message
func (*WindowsData) Reset ¶
func (x *WindowsData) Reset()
func (*WindowsData) String ¶
func (x *WindowsData) String() string
type Xattr ¶
type Xattr struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Xattr) Descriptor
deprecated
func (*Xattr) ProtoMessage ¶
func (*Xattr) ProtoMessage()
func (*Xattr) ProtoReflect ¶
func (x *Xattr) ProtoReflect() protoreflect.Message
type XattrData ¶
type XattrData struct {
Xattrs []*Xattr `protobuf:"bytes,1,rep,name=xattrs,proto3" json:"xattrs,omitempty"`
// contains filtered or unexported fields
}
func (*XattrData) Descriptor
deprecated
func (*XattrData) ProtoMessage ¶
func (*XattrData) ProtoMessage()
func (*XattrData) ProtoReflect ¶
func (x *XattrData) ProtoReflect() protoreflect.Message