dbproto

package
v1.29.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use BlockList.ProtoReflect.Descriptor instead.

func (*BlockList) GetBlocks

func (x *BlockList) GetBlocks() []*bep.BlockInfo

func (*BlockList) ProtoMessage

func (*BlockList) ProtoMessage()

func (*BlockList) ProtoReflect

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

func (*BlockList) Reset

func (x *BlockList) Reset()

func (*BlockList) String

func (x *BlockList) String() string

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

Deprecated: Use Counts.ProtoReflect.Descriptor instead.

func (*Counts) GetBytes

func (x *Counts) GetBytes() int64

func (*Counts) GetDeleted

func (x *Counts) GetDeleted() int32

func (*Counts) GetDeviceId

func (x *Counts) GetDeviceId() []byte

func (*Counts) GetDirectories

func (x *Counts) GetDirectories() int32

func (*Counts) GetFiles

func (x *Counts) GetFiles() int32

func (*Counts) GetLocalFlags

func (x *Counts) GetLocalFlags() uint32

func (*Counts) GetSequence

func (x *Counts) GetSequence() int64
func (x *Counts) GetSymlinks() int32

func (*Counts) ProtoMessage

func (*Counts) ProtoMessage()

func (*Counts) ProtoReflect

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

func (*Counts) Reset

func (x *Counts) Reset()

func (*Counts) String

func (x *Counts) String() string

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

Deprecated: Use CountsSet.ProtoReflect.Descriptor instead.

func (*CountsSet) GetCounts

func (x *CountsSet) GetCounts() []*Counts

func (*CountsSet) GetCreated

func (x *CountsSet) GetCreated() int64

func (*CountsSet) ProtoMessage

func (*CountsSet) ProtoMessage()

func (*CountsSet) ProtoReflect

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

func (*CountsSet) Reset

func (x *CountsSet) Reset()

func (*CountsSet) String

func (x *CountsSet) String() string

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

Jump to

Keyboard shortcuts

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