bep

package
v1.29.5-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

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

Deprecated: Use BlockInfo.ProtoReflect.Descriptor instead.

func (*BlockInfo) GetHash

func (x *BlockInfo) GetHash() []byte

func (*BlockInfo) GetOffset

func (x *BlockInfo) GetOffset() int64

func (*BlockInfo) GetSize

func (x *BlockInfo) GetSize() int32

func (*BlockInfo) GetWeakHash

func (x *BlockInfo) GetWeakHash() uint32

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) ProtoReflect

func (x *BlockInfo) ProtoReflect() protoreflect.Message

func (*BlockInfo) Reset

func (x *BlockInfo) Reset()

func (*BlockInfo) String

func (x *BlockInfo) String() string

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

Deprecated: Use Close.ProtoReflect.Descriptor instead.

func (*Close) GetReason

func (x *Close) GetReason() string

func (*Close) ProtoMessage

func (*Close) ProtoMessage()

func (*Close) ProtoReflect

func (x *Close) ProtoReflect() protoreflect.Message

func (*Close) Reset

func (x *Close) Reset()

func (*Close) String

func (x *Close) String() string

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) 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

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

Deprecated: Use Counter.ProtoReflect.Descriptor instead.

func (*Counter) GetId

func (x *Counter) GetId() uint64

func (*Counter) GetValue

func (x *Counter) GetValue() uint64

func (*Counter) ProtoMessage

func (*Counter) ProtoMessage()

func (*Counter) ProtoReflect

func (x *Counter) ProtoReflect() protoreflect.Message

func (*Counter) Reset

func (x *Counter) Reset()

func (*Counter) String

func (x *Counter) String() string

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetAddresses

func (x *Device) GetAddresses() []string

func (*Device) GetCertName

func (x *Device) GetCertName() string

func (*Device) GetCompression

func (x *Device) GetCompression() Compression

func (*Device) GetEncryptionPasswordToken

func (x *Device) GetEncryptionPasswordToken() []byte

func (*Device) GetId

func (x *Device) GetId() []byte

func (*Device) GetIndexId

func (x *Device) GetIndexId() uint64

func (*Device) GetIntroducer

func (x *Device) GetIntroducer() bool

func (*Device) GetMaxSequence

func (x *Device) GetMaxSequence() int64

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetSkipIntroductionRemovals

func (x *Device) GetSkipIntroductionRemovals() bool

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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
const (
	ErrorCode_ERROR_CODE_NO_ERROR     ErrorCode = 0
	ErrorCode_ERROR_CODE_GENERIC      ErrorCode = 1
	ErrorCode_ERROR_CODE_NO_SUCH_FILE ErrorCode = 2
	ErrorCode_ERROR_CODE_INVALID_FILE ErrorCode = 3
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

func (ErrorCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

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 (*FileDownloadProgressUpdate) GetVersion

func (x *FileDownloadProgressUpdate) GetVersion() *Vector

func (*FileDownloadProgressUpdate) ProtoMessage

func (*FileDownloadProgressUpdate) ProtoMessage()

func (*FileDownloadProgressUpdate) ProtoReflect

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) Enum

func (FileDownloadProgressUpdateType) EnumDescriptor deprecated

func (FileDownloadProgressUpdateType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileDownloadProgressUpdateType.Descriptor instead.

func (FileDownloadProgressUpdateType) Number

func (FileDownloadProgressUpdateType) String

func (FileDownloadProgressUpdateType) Type

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

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetBlockSize

func (x *FileInfo) GetBlockSize() int32

func (*FileInfo) GetBlocks

func (x *FileInfo) GetBlocks() []*BlockInfo

func (*FileInfo) GetBlocksHash

func (x *FileInfo) GetBlocksHash() []byte

func (*FileInfo) GetDeleted

func (x *FileInfo) GetDeleted() bool

func (*FileInfo) GetEncrypted

func (x *FileInfo) GetEncrypted() []byte

func (*FileInfo) GetEncryptionTrailerSize

func (x *FileInfo) GetEncryptionTrailerSize() int32

func (*FileInfo) GetInodeChangeNs

func (x *FileInfo) GetInodeChangeNs() int64

func (*FileInfo) GetInvalid

func (x *FileInfo) GetInvalid() bool

func (*FileInfo) GetLocalFlags

func (x *FileInfo) GetLocalFlags() uint32

func (*FileInfo) GetModifiedBy

func (x *FileInfo) GetModifiedBy() uint64

func (*FileInfo) GetModifiedNs

func (x *FileInfo) GetModifiedNs() int32

func (*FileInfo) GetModifiedS

func (x *FileInfo) GetModifiedS() int64

func (*FileInfo) GetName

func (x *FileInfo) GetName() string

func (*FileInfo) GetNoPermissions

func (x *FileInfo) GetNoPermissions() bool

func (*FileInfo) GetPermissions

func (x *FileInfo) GetPermissions() uint32

func (*FileInfo) GetPlatform

func (x *FileInfo) GetPlatform() *PlatformData

func (*FileInfo) GetSequence

func (x *FileInfo) GetSequence() int64

func (*FileInfo) GetSize

func (x *FileInfo) GetSize() int64

func (*FileInfo) GetSymlinkTarget

func (x *FileInfo) GetSymlinkTarget() []byte

func (*FileInfo) GetType

func (x *FileInfo) GetType() FileInfoType

func (*FileInfo) GetVersion

func (x *FileInfo) GetVersion() *Vector

func (*FileInfo) GetVersionHash

func (x *FileInfo) GetVersionHash() []byte

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

func (x *FileInfo) ProtoReflect() protoreflect.Message

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

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) Enum

func (x FileInfoType) Enum() *FileInfoType

func (FileInfoType) EnumDescriptor deprecated

func (FileInfoType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileInfoType.Descriptor instead.

func (FileInfoType) Number

func (FileInfoType) String

func (x FileInfoType) String() string

func (FileInfoType) Type

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

Deprecated: Use Folder.ProtoReflect.Descriptor instead.

func (*Folder) GetDevices

func (x *Folder) GetDevices() []*Device

func (*Folder) GetDisableTempIndexes

func (x *Folder) GetDisableTempIndexes() bool

func (*Folder) GetId

func (x *Folder) GetId() string

func (*Folder) GetIgnoreDelete

func (x *Folder) GetIgnoreDelete() bool

func (*Folder) GetIgnorePermissions

func (x *Folder) GetIgnorePermissions() bool

func (*Folder) GetLabel

func (x *Folder) GetLabel() string

func (*Folder) GetPaused

func (x *Folder) GetPaused() bool

func (*Folder) GetReadOnly

func (x *Folder) GetReadOnly() bool

func (*Folder) ProtoMessage

func (*Folder) ProtoMessage()

func (*Folder) ProtoReflect

func (x *Folder) ProtoReflect() protoreflect.Message

func (*Folder) Reset

func (x *Folder) Reset()

func (*Folder) String

func (x *Folder) String() string
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) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

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

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetClientName

func (x *Hello) GetClientName() string

func (*Hello) GetClientVersion

func (x *Hello) GetClientVersion() string

func (*Hello) GetDeviceName

func (x *Hello) GetDeviceName() string

func (*Hello) GetNumConnections

func (x *Hello) GetNumConnections() int32

func (*Hello) GetTimestamp

func (x *Hello) GetTimestamp() int64

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

func (x *Hello) ProtoReflect() protoreflect.Message

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

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

Deprecated: Use Index.ProtoReflect.Descriptor instead.

func (*Index) GetFiles

func (x *Index) GetFiles() []*FileInfo

func (*Index) GetFolder

func (x *Index) GetFolder() string

func (*Index) GetLastSequence

func (x *Index) GetLastSequence() int64

func (*Index) ProtoMessage

func (*Index) ProtoMessage()

func (*Index) ProtoReflect

func (x *Index) ProtoReflect() protoreflect.Message

func (*Index) Reset

func (x *Index) Reset()

func (*Index) String

func (x *Index) String() string

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) Enum

func (MessageCompression) EnumDescriptor deprecated

func (MessageCompression) EnumDescriptor() ([]byte, []int)

Deprecated: Use MessageCompression.Descriptor instead.

func (MessageCompression) Number

func (MessageCompression) String

func (x MessageCompression) String() string

func (MessageCompression) Type

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) 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

type Ping

type Ping struct {
	// contains filtered or unexported fields
}

func (*Ping) Descriptor deprecated

func (*Ping) Descriptor() ([]byte, []int)

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

func (x *Ping) ProtoReflect() protoreflect.Message

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBlockNo

func (x *Request) GetBlockNo() int32

func (*Request) GetFolder

func (x *Request) GetFolder() string

func (*Request) GetFromTemporary

func (x *Request) GetFromTemporary() bool

func (*Request) GetHash

func (x *Request) GetHash() []byte

func (*Request) GetId

func (x *Request) GetId() int32

func (*Request) GetName

func (x *Request) GetName() string

func (*Request) GetOffset

func (x *Request) GetOffset() int64

func (*Request) GetSize

func (x *Request) GetSize() int32

func (*Request) GetWeakHash

func (x *Request) GetWeakHash() uint32

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode

func (x *Response) GetCode() ErrorCode

func (*Response) GetData

func (x *Response) GetData() []byte

func (*Response) GetId

func (x *Response) GetId() int32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

Deprecated: Use UnixData.ProtoReflect.Descriptor instead.

func (*UnixData) GetGid

func (x *UnixData) GetGid() int32

func (*UnixData) GetGroupName

func (x *UnixData) GetGroupName() string

func (*UnixData) GetOwnerName

func (x *UnixData) GetOwnerName() string

func (*UnixData) GetUid

func (x *UnixData) GetUid() int32

func (*UnixData) ProtoMessage

func (*UnixData) ProtoMessage()

func (*UnixData) ProtoReflect

func (x *UnixData) ProtoReflect() protoreflect.Message

func (*UnixData) Reset

func (x *UnixData) Reset()

func (*UnixData) String

func (x *UnixData) String() string

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

Deprecated: Use Vector.ProtoReflect.Descriptor instead.

func (*Vector) GetCounters

func (x *Vector) GetCounters() []*Counter

func (*Vector) ProtoMessage

func (*Vector) ProtoMessage()

func (*Vector) ProtoReflect

func (x *Vector) ProtoReflect() protoreflect.Message

func (*Vector) Reset

func (x *Vector) Reset()

func (*Vector) String

func (x *Vector) String() string

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

Deprecated: Use Xattr.ProtoReflect.Descriptor instead.

func (*Xattr) GetName

func (x *Xattr) GetName() string

func (*Xattr) GetValue

func (x *Xattr) GetValue() []byte

func (*Xattr) ProtoMessage

func (*Xattr) ProtoMessage()

func (*Xattr) ProtoReflect

func (x *Xattr) ProtoReflect() protoreflect.Message

func (*Xattr) Reset

func (x *Xattr) Reset()

func (*Xattr) String

func (x *Xattr) String() string

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

Deprecated: Use XattrData.ProtoReflect.Descriptor instead.

func (*XattrData) GetXattrs

func (x *XattrData) GetXattrs() []*Xattr

func (*XattrData) ProtoMessage

func (*XattrData) ProtoMessage()

func (*XattrData) ProtoReflect

func (x *XattrData) ProtoReflect() protoreflect.Message

func (*XattrData) Reset

func (x *XattrData) Reset()

func (*XattrData) String

func (x *XattrData) String() string

Jump to

Keyboard shortcuts

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