Documentation
¶
Index ¶
- Variables
- type BlockList
- type Counts
- func (*Counts) Descriptor() ([]byte, []int)deprecated
- func (x *Counts) GetBytes() int64
- func (x *Counts) GetDeleted() int32
- func (x *Counts) GetDeviceId() []byte
- func (x *Counts) GetDirectories() int32
- func (x *Counts) GetFiles() int32
- func (x *Counts) GetLocalFlags() uint32
- func (x *Counts) GetSequence() int64
- func (x *Counts) GetSymlinks() int32
- func (*Counts) ProtoMessage()
- func (x *Counts) ProtoReflect() protoreflect.Message
- func (x *Counts) Reset()
- func (x *Counts) String() string
- type CountsSet
- type FileInfoTruncated
- func (*FileInfoTruncated) Descriptor() ([]byte, []int)deprecated
- func (x *FileInfoTruncated) GetBlockSize() int32
- func (x *FileInfoTruncated) GetBlocksHash() []byte
- func (x *FileInfoTruncated) GetDeleted() bool
- func (x *FileInfoTruncated) GetEncrypted() []byte
- func (x *FileInfoTruncated) GetEncryptionTrailerSize() int32
- func (x *FileInfoTruncated) GetInodeChangeNs() int64
- func (x *FileInfoTruncated) GetInvalid() bool
- func (x *FileInfoTruncated) GetLocalFlags() uint32
- func (x *FileInfoTruncated) GetModifiedBy() uint64
- func (x *FileInfoTruncated) GetModifiedNs() int32
- func (x *FileInfoTruncated) GetModifiedS() int64
- func (x *FileInfoTruncated) GetName() string
- func (x *FileInfoTruncated) GetNoPermissions() bool
- func (x *FileInfoTruncated) GetPermissions() uint32
- func (x *FileInfoTruncated) GetPlatform() *bep.PlatformData
- func (x *FileInfoTruncated) GetSequence() int64
- func (x *FileInfoTruncated) GetSize() int64
- func (x *FileInfoTruncated) GetSymlinkTarget() []byte
- func (x *FileInfoTruncated) GetType() bep.FileInfoType
- func (x *FileInfoTruncated) GetVersion() *bep.Vector
- func (x *FileInfoTruncated) GetVersionHash() []byte
- func (*FileInfoTruncated) ProtoMessage()
- func (x *FileInfoTruncated) ProtoReflect() protoreflect.Message
- func (x *FileInfoTruncated) Reset()
- func (x *FileInfoTruncated) String() string
- type FileVersion
- func (*FileVersion) Descriptor() ([]byte, []int)deprecated
- func (x *FileVersion) GetDeleted() bool
- func (x *FileVersion) GetDevices() [][]byte
- func (x *FileVersion) GetInvalidDevices() [][]byte
- func (x *FileVersion) GetVersion() *bep.Vector
- func (*FileVersion) ProtoMessage()
- func (x *FileVersion) ProtoReflect() protoreflect.Message
- func (x *FileVersion) Reset()
- func (x *FileVersion) String() string
- type IndirectionHashesOnly
- func (*IndirectionHashesOnly) Descriptor() ([]byte, []int)deprecated
- func (x *IndirectionHashesOnly) GetBlocksHash() []byte
- func (x *IndirectionHashesOnly) GetVersionHash() []byte
- func (*IndirectionHashesOnly) ProtoMessage()
- func (x *IndirectionHashesOnly) ProtoReflect() protoreflect.Message
- func (x *IndirectionHashesOnly) Reset()
- func (x *IndirectionHashesOnly) String() string
- type ObservedDevice
- func (*ObservedDevice) Descriptor() ([]byte, []int)deprecated
- func (x *ObservedDevice) GetAddress() string
- func (x *ObservedDevice) GetName() string
- func (x *ObservedDevice) GetTime() *timestamppb.Timestamp
- func (*ObservedDevice) ProtoMessage()
- func (x *ObservedDevice) ProtoReflect() protoreflect.Message
- func (x *ObservedDevice) Reset()
- func (x *ObservedDevice) String() string
- type ObservedFolder
- func (*ObservedFolder) Descriptor() ([]byte, []int)deprecated
- func (x *ObservedFolder) GetLabel() string
- func (x *ObservedFolder) GetReceiveEncrypted() bool
- func (x *ObservedFolder) GetRemoteEncrypted() bool
- func (x *ObservedFolder) GetTime() *timestamppb.Timestamp
- func (*ObservedFolder) ProtoMessage()
- func (x *ObservedFolder) ProtoReflect() protoreflect.Message
- func (x *ObservedFolder) Reset()
- func (x *ObservedFolder) String() string
- type VersionList
Constants ¶
This section is empty.
Variables ¶
var File_dbproto_structs_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BlockList ¶
type BlockList struct {
Blocks []*bep.BlockInfo `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
// contains filtered or unexported fields
}
BlockList is the structure used to store block lists
func (*BlockList) Descriptor
deprecated
func (*BlockList) ProtoMessage ¶
func (*BlockList) ProtoMessage()
func (*BlockList) ProtoReflect ¶
func (x *BlockList) ProtoReflect() protoreflect.Message
type Counts ¶
type Counts struct {
Files int32 `protobuf:"varint,1,opt,name=files,proto3" json:"files,omitempty"`
Directories int32 `protobuf:"varint,2,opt,name=directories,proto3" json:"directories,omitempty"`
Symlinks int32 `protobuf:"varint,3,opt,name=symlinks,proto3" json:"symlinks,omitempty"`
Deleted int32 `protobuf:"varint,4,opt,name=deleted,proto3" json:"deleted,omitempty"`
Bytes int64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes,omitempty"`
Sequence int64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` // zero for the global state
DeviceId []byte `protobuf:"bytes,17,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // device ID for remote devices, or special values for local/global
LocalFlags uint32 `protobuf:"varint,18,opt,name=local_flags,json=localFlags,proto3" json:"local_flags,omitempty"` // the local flag for this count bucket
// contains filtered or unexported fields
}
For each folder and device we keep one of these to track the current counts and sequence. We also keep one for the global state of the folder.
func (*Counts) Descriptor
deprecated
func (*Counts) GetDeleted ¶
func (*Counts) GetDeviceId ¶
func (*Counts) GetDirectories ¶
func (*Counts) GetLocalFlags ¶
func (*Counts) GetSequence ¶
func (*Counts) GetSymlinks ¶
func (*Counts) ProtoMessage ¶
func (*Counts) ProtoMessage()
func (*Counts) ProtoReflect ¶
func (x *Counts) ProtoReflect() protoreflect.Message
type CountsSet ¶
type CountsSet struct {
Counts []*Counts `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty"`
Created int64 `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"` // unix nanos
// contains filtered or unexported fields
}
func (*CountsSet) Descriptor
deprecated
func (*CountsSet) GetCreated ¶
func (*CountsSet) ProtoMessage ¶
func (*CountsSet) ProtoMessage()
func (*CountsSet) ProtoReflect ¶
func (x *CountsSet) ProtoReflect() protoreflect.Message
type FileInfoTruncated ¶
type FileInfoTruncated 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 *bep.Vector `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"`
Sequence int64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,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 bep.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 *bep.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
}
Same as bep.FileInfo, but without blocks
func (*FileInfoTruncated) Descriptor
deprecated
func (*FileInfoTruncated) Descriptor() ([]byte, []int)
Deprecated: Use FileInfoTruncated.ProtoReflect.Descriptor instead.
func (*FileInfoTruncated) GetBlockSize ¶
func (x *FileInfoTruncated) GetBlockSize() int32
func (*FileInfoTruncated) GetBlocksHash ¶
func (x *FileInfoTruncated) GetBlocksHash() []byte
func (*FileInfoTruncated) GetDeleted ¶
func (x *FileInfoTruncated) GetDeleted() bool
func (*FileInfoTruncated) GetEncrypted ¶
func (x *FileInfoTruncated) GetEncrypted() []byte
func (*FileInfoTruncated) GetEncryptionTrailerSize ¶
func (x *FileInfoTruncated) GetEncryptionTrailerSize() int32
func (*FileInfoTruncated) GetInodeChangeNs ¶
func (x *FileInfoTruncated) GetInodeChangeNs() int64
func (*FileInfoTruncated) GetInvalid ¶
func (x *FileInfoTruncated) GetInvalid() bool
func (*FileInfoTruncated) GetLocalFlags ¶
func (x *FileInfoTruncated) GetLocalFlags() uint32
func (*FileInfoTruncated) GetModifiedBy ¶
func (x *FileInfoTruncated) GetModifiedBy() uint64
func (*FileInfoTruncated) GetModifiedNs ¶
func (x *FileInfoTruncated) GetModifiedNs() int32
func (*FileInfoTruncated) GetModifiedS ¶
func (x *FileInfoTruncated) GetModifiedS() int64
func (*FileInfoTruncated) GetName ¶
func (x *FileInfoTruncated) GetName() string
func (*FileInfoTruncated) GetNoPermissions ¶
func (x *FileInfoTruncated) GetNoPermissions() bool
func (*FileInfoTruncated) GetPermissions ¶
func (x *FileInfoTruncated) GetPermissions() uint32
func (*FileInfoTruncated) GetPlatform ¶
func (x *FileInfoTruncated) GetPlatform() *bep.PlatformData
func (*FileInfoTruncated) GetSequence ¶
func (x *FileInfoTruncated) GetSequence() int64
func (*FileInfoTruncated) GetSize ¶
func (x *FileInfoTruncated) GetSize() int64
func (*FileInfoTruncated) GetSymlinkTarget ¶
func (x *FileInfoTruncated) GetSymlinkTarget() []byte
func (*FileInfoTruncated) GetType ¶
func (x *FileInfoTruncated) GetType() bep.FileInfoType
func (*FileInfoTruncated) GetVersion ¶
func (x *FileInfoTruncated) GetVersion() *bep.Vector
func (*FileInfoTruncated) GetVersionHash ¶
func (x *FileInfoTruncated) GetVersionHash() []byte
func (*FileInfoTruncated) ProtoMessage ¶
func (*FileInfoTruncated) ProtoMessage()
func (*FileInfoTruncated) ProtoReflect ¶
func (x *FileInfoTruncated) ProtoReflect() protoreflect.Message
func (*FileInfoTruncated) Reset ¶
func (x *FileInfoTruncated) Reset()
func (*FileInfoTruncated) String ¶
func (x *FileInfoTruncated) String() string
type FileVersion ¶
type FileVersion struct {
Version *bep.Vector `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
Devices [][]byte `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,omitempty"`
InvalidDevices [][]byte `protobuf:"bytes,4,rep,name=invalid_devices,json=invalidDevices,proto3" json:"invalid_devices,omitempty"`
// contains filtered or unexported fields
}
func (*FileVersion) Descriptor
deprecated
func (*FileVersion) Descriptor() ([]byte, []int)
Deprecated: Use FileVersion.ProtoReflect.Descriptor instead.
func (*FileVersion) GetDeleted ¶
func (x *FileVersion) GetDeleted() bool
func (*FileVersion) GetDevices ¶
func (x *FileVersion) GetDevices() [][]byte
func (*FileVersion) GetInvalidDevices ¶
func (x *FileVersion) GetInvalidDevices() [][]byte
func (*FileVersion) GetVersion ¶
func (x *FileVersion) GetVersion() *bep.Vector
func (*FileVersion) ProtoMessage ¶
func (*FileVersion) ProtoMessage()
func (*FileVersion) ProtoReflect ¶
func (x *FileVersion) ProtoReflect() protoreflect.Message
func (*FileVersion) Reset ¶
func (x *FileVersion) Reset()
func (*FileVersion) String ¶
func (x *FileVersion) String() string
type IndirectionHashesOnly ¶
type IndirectionHashesOnly struct {
BlocksHash []byte `protobuf:"bytes,18,opt,name=blocks_hash,json=blocksHash,proto3" json:"blocks_hash,omitempty"`
VersionHash []byte `protobuf:"bytes,1001,opt,name=version_hash,json=versionHash,proto3" json:"version_hash,omitempty"`
// contains filtered or unexported fields
}
IndirectionHashesOnly is used to only unmarshal the indirection hashes from a FileInfo
func (*IndirectionHashesOnly) Descriptor
deprecated
func (*IndirectionHashesOnly) Descriptor() ([]byte, []int)
Deprecated: Use IndirectionHashesOnly.ProtoReflect.Descriptor instead.
func (*IndirectionHashesOnly) GetBlocksHash ¶
func (x *IndirectionHashesOnly) GetBlocksHash() []byte
func (*IndirectionHashesOnly) GetVersionHash ¶
func (x *IndirectionHashesOnly) GetVersionHash() []byte
func (*IndirectionHashesOnly) ProtoMessage ¶
func (*IndirectionHashesOnly) ProtoMessage()
func (*IndirectionHashesOnly) ProtoReflect ¶
func (x *IndirectionHashesOnly) ProtoReflect() protoreflect.Message
func (*IndirectionHashesOnly) Reset ¶
func (x *IndirectionHashesOnly) Reset()
func (*IndirectionHashesOnly) String ¶
func (x *IndirectionHashesOnly) String() string
type ObservedDevice ¶
type ObservedDevice struct {
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*ObservedDevice) Descriptor
deprecated
func (*ObservedDevice) Descriptor() ([]byte, []int)
Deprecated: Use ObservedDevice.ProtoReflect.Descriptor instead.
func (*ObservedDevice) GetAddress ¶
func (x *ObservedDevice) GetAddress() string
func (*ObservedDevice) GetName ¶
func (x *ObservedDevice) GetName() string
func (*ObservedDevice) GetTime ¶
func (x *ObservedDevice) GetTime() *timestamppb.Timestamp
func (*ObservedDevice) ProtoMessage ¶
func (*ObservedDevice) ProtoMessage()
func (*ObservedDevice) ProtoReflect ¶
func (x *ObservedDevice) ProtoReflect() protoreflect.Message
func (*ObservedDevice) Reset ¶
func (x *ObservedDevice) Reset()
func (*ObservedDevice) String ¶
func (x *ObservedDevice) String() string
type ObservedFolder ¶
type ObservedFolder struct {
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
ReceiveEncrypted bool `protobuf:"varint,3,opt,name=receive_encrypted,json=receiveEncrypted,proto3" json:"receive_encrypted,omitempty"`
RemoteEncrypted bool `protobuf:"varint,4,opt,name=remote_encrypted,json=remoteEncrypted,proto3" json:"remote_encrypted,omitempty"`
// contains filtered or unexported fields
}
func (*ObservedFolder) Descriptor
deprecated
func (*ObservedFolder) Descriptor() ([]byte, []int)
Deprecated: Use ObservedFolder.ProtoReflect.Descriptor instead.
func (*ObservedFolder) GetLabel ¶
func (x *ObservedFolder) GetLabel() string
func (*ObservedFolder) GetReceiveEncrypted ¶
func (x *ObservedFolder) GetReceiveEncrypted() bool
func (*ObservedFolder) GetRemoteEncrypted ¶
func (x *ObservedFolder) GetRemoteEncrypted() bool
func (*ObservedFolder) GetTime ¶
func (x *ObservedFolder) GetTime() *timestamppb.Timestamp
func (*ObservedFolder) ProtoMessage ¶
func (*ObservedFolder) ProtoMessage()
func (*ObservedFolder) ProtoReflect ¶
func (x *ObservedFolder) ProtoReflect() protoreflect.Message
func (*ObservedFolder) Reset ¶
func (x *ObservedFolder) Reset()
func (*ObservedFolder) String ¶
func (x *ObservedFolder) String() string
type VersionList ¶
type VersionList struct {
Versions []*FileVersion `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
// contains filtered or unexported fields
}
func (*VersionList) Descriptor
deprecated
func (*VersionList) Descriptor() ([]byte, []int)
Deprecated: Use VersionList.ProtoReflect.Descriptor instead.
func (*VersionList) GetVersions ¶
func (x *VersionList) GetVersions() []*FileVersion
func (*VersionList) ProtoMessage ¶
func (*VersionList) ProtoMessage()
func (*VersionList) ProtoReflect ¶
func (x *VersionList) ProtoReflect() protoreflect.Message
func (*VersionList) Reset ¶
func (x *VersionList) Reset()
func (*VersionList) String ¶
func (x *VersionList) String() string