rfs

package
v0.0.0-...-7ce57cb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name        string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IsDirectory bool              `protobuf:"varint,2,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"`
	Chunks      []*FileChunk      `protobuf:"bytes,3,rep,name=chunks,proto3" json:"chunks,omitempty"`
	Attributes  *FuseAttributes   `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Extended    map[string][]byte ``                                                                    /* 157-byte string literal not displayed */
	Content     []byte            `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` // if not empty, the file content
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAttributes

func (x *Entry) GetAttributes() *FuseAttributes

func (*Entry) GetChunks

func (x *Entry) GetChunks() []*FileChunk

func (*Entry) GetContent

func (x *Entry) GetContent() []byte

func (*Entry) GetExtended

func (x *Entry) GetExtended() map[string][]byte

func (*Entry) GetIsDirectory

func (x *Entry) GetIsDirectory() bool

func (*Entry) GetName

func (x *Entry) GetName() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type FileChunk

type FileChunk struct {
	Chunkid         int64    `protobuf:"varint,1,opt,name=chunkid,proto3" json:"chunkid,omitempty"`
	Fid             *FileId  `protobuf:"bytes,2,opt,name=fid,proto3" json:"fid,omitempty"`
	VolumeIds       []string `protobuf:"bytes,3,rep,name=volume_ids,json=volumeIds,proto3" json:"volume_ids,omitempty"`
	Offset          uint64   `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	Size            uint64   `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	Mtime           int64    `protobuf:"varint,6,opt,name=mtime,proto3" json:"mtime,omitempty"`
	ETag            string   `protobuf:"bytes,7,opt,name=e_tag,json=eTag,proto3" json:"e_tag,omitempty"`
	IsCompressed    bool     `protobuf:"varint,8,opt,name=is_compressed,json=isCompressed,proto3" json:"is_compressed,omitempty"`
	IsChunkManifest bool     `protobuf:"varint,9,opt,name=is_chunk_manifest,json=isChunkManifest,proto3" json:"is_chunk_manifest,omitempty"` // content is a list of FileChunks
	Content         []byte   `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"`                                          // if not empty, the chunk content
	// contains filtered or unexported fields
}

func (*FileChunk) Descriptor deprecated

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

Deprecated: Use FileChunk.ProtoReflect.Descriptor instead.

func (*FileChunk) GetChunkid

func (x *FileChunk) GetChunkid() int64

func (*FileChunk) GetContent

func (x *FileChunk) GetContent() []byte

func (*FileChunk) GetETag

func (x *FileChunk) GetETag() string

func (*FileChunk) GetFid

func (x *FileChunk) GetFid() *FileId

func (*FileChunk) GetIsChunkManifest

func (x *FileChunk) GetIsChunkManifest() bool

func (*FileChunk) GetIsCompressed

func (x *FileChunk) GetIsCompressed() bool

func (*FileChunk) GetMtime

func (x *FileChunk) GetMtime() int64

func (*FileChunk) GetOffset

func (x *FileChunk) GetOffset() uint64

func (*FileChunk) GetSize

func (x *FileChunk) GetSize() uint64

func (*FileChunk) GetVolumeIds

func (x *FileChunk) GetVolumeIds() []string

func (*FileChunk) ProtoMessage

func (*FileChunk) ProtoMessage()

func (*FileChunk) ProtoReflect

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

func (*FileChunk) Reset

func (x *FileChunk) Reset()

func (*FileChunk) String

func (x *FileChunk) String() string

type FileId

type FileId struct {
	VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
	FileKey  uint64 `protobuf:"varint,2,opt,name=file_key,json=fileKey,proto3" json:"file_key,omitempty"`
	Cookie   uint32 `protobuf:"fixed32,3,opt,name=cookie,proto3" json:"cookie,omitempty"`
	// contains filtered or unexported fields
}

func (*FileId) Descriptor deprecated

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

Deprecated: Use FileId.ProtoReflect.Descriptor instead.

func (*FileId) GetCookie

func (x *FileId) GetCookie() uint32

func (*FileId) GetFileKey

func (x *FileId) GetFileKey() uint64

func (*FileId) GetVolumeId

func (x *FileId) GetVolumeId() uint32

func (*FileId) ProtoMessage

func (*FileId) ProtoMessage()

func (*FileId) ProtoReflect

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

func (*FileId) Reset

func (x *FileId) Reset()

func (*FileId) String

func (x *FileId) String() string

type FuseAttributes

type FuseAttributes struct {
	FileSize uint64 `protobuf:"varint,1,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
	Mtime    int64  `protobuf:"varint,2,opt,name=mtime,proto3" json:"mtime,omitempty"` // unix time in seconds
	FileMode uint32 `protobuf:"varint,3,opt,name=file_mode,json=fileMode,proto3" json:"file_mode,omitempty"`
	Uid      uint32 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"`
	Gid      uint32 `protobuf:"varint,5,opt,name=gid,proto3" json:"gid,omitempty"`
	Crtime   int64  `protobuf:"varint,6,opt,name=crtime,proto3" json:"crtime,omitempty"` // unix time in seconds
	Mime     string `protobuf:"bytes,7,opt,name=mime,proto3" json:"mime,omitempty"`
	Md5      []byte `protobuf:"bytes,8,opt,name=md5,proto3" json:"md5,omitempty"`
	Rdev     uint32 `protobuf:"varint,9,opt,name=rdev,proto3" json:"rdev,omitempty"`
	Inode    uint64 `protobuf:"varint,10,opt,name=inode,proto3" json:"inode,omitempty"`
	// contains filtered or unexported fields
}

func (*FuseAttributes) Descriptor deprecated

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

Deprecated: Use FuseAttributes.ProtoReflect.Descriptor instead.

func (*FuseAttributes) GetCrtime

func (x *FuseAttributes) GetCrtime() int64

func (*FuseAttributes) GetFileMode

func (x *FuseAttributes) GetFileMode() uint32

func (*FuseAttributes) GetFileSize

func (x *FuseAttributes) GetFileSize() uint64

func (*FuseAttributes) GetGid

func (x *FuseAttributes) GetGid() uint32

func (*FuseAttributes) GetInode

func (x *FuseAttributes) GetInode() uint64

func (*FuseAttributes) GetMd5

func (x *FuseAttributes) GetMd5() []byte

func (*FuseAttributes) GetMime

func (x *FuseAttributes) GetMime() string

func (*FuseAttributes) GetMtime

func (x *FuseAttributes) GetMtime() int64

func (*FuseAttributes) GetRdev

func (x *FuseAttributes) GetRdev() uint32

func (*FuseAttributes) GetUid

func (x *FuseAttributes) GetUid() uint32

func (*FuseAttributes) ProtoMessage

func (*FuseAttributes) ProtoMessage()

func (*FuseAttributes) ProtoReflect

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

func (*FuseAttributes) Reset

func (x *FuseAttributes) Reset()

func (*FuseAttributes) String

func (x *FuseAttributes) String() string

Jump to

Keyboard shortcuts

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