Documentation ¶
Overview ¶
Package fuse is a generated protocol buffer package.
It is generated from these files:
server/pfs/fuse/fuse.proto
It has these top-level messages:
CommitMount Filesystem Node Attr Dirent Root DirectoryAttr DirectoryLookup DirectoryReadDirAll DirectoryCreate DirectoryMkdir FileAttr FileSetAttr FileRead FileOpen FileWrite FileRemove
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attr ¶
type Attr struct {
Mode uint32 `protobuf:"varint,1,opt,name=Mode,json=mode" json:"Mode,omitempty"`
}
func (*Attr) Descriptor ¶
func (*Attr) ProtoMessage ¶
func (*Attr) ProtoMessage()
type CommitMount ¶
type CommitMount struct { Commit *pfs.Commit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` DiffMethod *pfs.DiffMethod `protobuf:"bytes,2,opt,name=diff_method,json=diffMethod" json:"diff_method,omitempty"` FullFile bool `protobuf:"varint,3,opt,name=full_file,json=fullFile" json:"full_file,omitempty"` Alias string `protobuf:"bytes,4,opt,name=alias" json:"alias,omitempty"` Shard *pfs.Shard `protobuf:"bytes,5,opt,name=shard" json:"shard,omitempty"` }
func (*CommitMount) Descriptor ¶
func (*CommitMount) Descriptor() ([]byte, []int)
func (*CommitMount) GetCommit ¶
func (m *CommitMount) GetCommit() *pfs.Commit
func (*CommitMount) GetDiffMethod ¶ added in v1.2.0
func (m *CommitMount) GetDiffMethod() *pfs.DiffMethod
func (*CommitMount) GetShard ¶
func (m *CommitMount) GetShard() *pfs.Shard
func (*CommitMount) ProtoMessage ¶
func (*CommitMount) ProtoMessage()
func (*CommitMount) Reset ¶
func (m *CommitMount) Reset()
func (*CommitMount) String ¶
func (m *CommitMount) String() string
type DirectoryAttr ¶
type DirectoryAttr struct { Directory *Node `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` Result *Attr `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*DirectoryAttr) Descriptor ¶
func (*DirectoryAttr) Descriptor() ([]byte, []int)
func (*DirectoryAttr) GetDirectory ¶
func (m *DirectoryAttr) GetDirectory() *Node
func (*DirectoryAttr) GetResult ¶
func (m *DirectoryAttr) GetResult() *Attr
func (*DirectoryAttr) ProtoMessage ¶
func (*DirectoryAttr) ProtoMessage()
func (*DirectoryAttr) Reset ¶
func (m *DirectoryAttr) Reset()
func (*DirectoryAttr) String ¶
func (m *DirectoryAttr) String() string
type DirectoryCreate ¶
type DirectoryCreate struct { Directory *Node `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` Result *Node `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*DirectoryCreate) Descriptor ¶
func (*DirectoryCreate) Descriptor() ([]byte, []int)
func (*DirectoryCreate) GetDirectory ¶
func (m *DirectoryCreate) GetDirectory() *Node
func (*DirectoryCreate) GetResult ¶
func (m *DirectoryCreate) GetResult() *Node
func (*DirectoryCreate) ProtoMessage ¶
func (*DirectoryCreate) ProtoMessage()
func (*DirectoryCreate) Reset ¶
func (m *DirectoryCreate) Reset()
func (*DirectoryCreate) String ¶
func (m *DirectoryCreate) String() string
type DirectoryLookup ¶
type DirectoryLookup struct { Directory *Node `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Result *Node `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"` Err string `protobuf:"bytes,4,opt,name=err" json:"err,omitempty"` }
func (*DirectoryLookup) Descriptor ¶
func (*DirectoryLookup) Descriptor() ([]byte, []int)
func (*DirectoryLookup) GetDirectory ¶
func (m *DirectoryLookup) GetDirectory() *Node
func (*DirectoryLookup) GetResult ¶
func (m *DirectoryLookup) GetResult() *Node
func (*DirectoryLookup) ProtoMessage ¶
func (*DirectoryLookup) ProtoMessage()
func (*DirectoryLookup) Reset ¶
func (m *DirectoryLookup) Reset()
func (*DirectoryLookup) String ¶
func (m *DirectoryLookup) String() string
type DirectoryMkdir ¶
type DirectoryMkdir struct { Directory *Node `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` Result *Node `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*DirectoryMkdir) Descriptor ¶
func (*DirectoryMkdir) Descriptor() ([]byte, []int)
func (*DirectoryMkdir) GetDirectory ¶
func (m *DirectoryMkdir) GetDirectory() *Node
func (*DirectoryMkdir) GetResult ¶
func (m *DirectoryMkdir) GetResult() *Node
func (*DirectoryMkdir) ProtoMessage ¶
func (*DirectoryMkdir) ProtoMessage()
func (*DirectoryMkdir) Reset ¶
func (m *DirectoryMkdir) Reset()
func (*DirectoryMkdir) String ¶
func (m *DirectoryMkdir) String() string
type DirectoryReadDirAll ¶
type DirectoryReadDirAll struct { Directory *Node `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` Result []*Dirent `protobuf:"bytes,2,rep,name=result" json:"result,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*DirectoryReadDirAll) Descriptor ¶
func (*DirectoryReadDirAll) Descriptor() ([]byte, []int)
func (*DirectoryReadDirAll) GetDirectory ¶
func (m *DirectoryReadDirAll) GetDirectory() *Node
func (*DirectoryReadDirAll) GetResult ¶
func (m *DirectoryReadDirAll) GetResult() []*Dirent
func (*DirectoryReadDirAll) ProtoMessage ¶
func (*DirectoryReadDirAll) ProtoMessage()
func (*DirectoryReadDirAll) Reset ¶
func (m *DirectoryReadDirAll) Reset()
func (*DirectoryReadDirAll) String ¶
func (m *DirectoryReadDirAll) String() string
type Dirent ¶
type Dirent struct { Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*Dirent) Descriptor ¶
func (*Dirent) ProtoMessage ¶
func (*Dirent) ProtoMessage()
type FileAttr ¶
type FileAttr struct { File *Node `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Result *Attr `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*FileAttr) Descriptor ¶
func (*FileAttr) ProtoMessage ¶
func (*FileAttr) ProtoMessage()
type FileOpen ¶
type FileOpen struct { File *Node `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` }
func (*FileOpen) Descriptor ¶
func (*FileOpen) ProtoMessage ¶
func (*FileOpen) ProtoMessage()
type FileRead ¶
type FileRead struct { File *Node `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Data string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*FileRead) Descriptor ¶
func (*FileRead) ProtoMessage ¶
func (*FileRead) ProtoMessage()
type FileRemove ¶
type FileRemove struct { File *Node `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Dir bool `protobuf:"varint,3,opt,name=dir" json:"dir,omitempty"` Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"` }
func (*FileRemove) Descriptor ¶
func (*FileRemove) Descriptor() ([]byte, []int)
func (*FileRemove) GetFile ¶
func (m *FileRemove) GetFile() *Node
func (*FileRemove) ProtoMessage ¶
func (*FileRemove) ProtoMessage()
func (*FileRemove) Reset ¶
func (m *FileRemove) Reset()
func (*FileRemove) String ¶
func (m *FileRemove) String() string
type FileSetAttr ¶
type FileSetAttr struct { File *Node `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` }
func (*FileSetAttr) Descriptor ¶
func (*FileSetAttr) Descriptor() ([]byte, []int)
func (*FileSetAttr) GetFile ¶
func (m *FileSetAttr) GetFile() *Node
func (*FileSetAttr) ProtoMessage ¶
func (*FileSetAttr) ProtoMessage()
func (*FileSetAttr) Reset ¶
func (m *FileSetAttr) Reset()
func (*FileSetAttr) String ¶
func (m *FileSetAttr) String() string
type FileWrite ¶
type FileWrite struct { File *Node `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Data string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` Offset int64 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"` }
func (*FileWrite) Descriptor ¶
func (*FileWrite) ProtoMessage ¶
func (*FileWrite) ProtoMessage()
type Filesystem ¶
type Filesystem struct { Shard *pfs.Shard `protobuf:"bytes,1,opt,name=shard" json:"shard,omitempty"` CommitMounts []*CommitMount `protobuf:"bytes,2,rep,name=commit_mounts,json=commitMounts" json:"commit_mounts,omitempty"` }
func (*Filesystem) Descriptor ¶
func (*Filesystem) Descriptor() ([]byte, []int)
func (*Filesystem) GetCommitMounts ¶
func (m *Filesystem) GetCommitMounts() []*CommitMount
func (*Filesystem) GetShard ¶
func (m *Filesystem) GetShard() *pfs.Shard
func (*Filesystem) ProtoMessage ¶
func (*Filesystem) ProtoMessage()
func (*Filesystem) Reset ¶
func (m *Filesystem) Reset()
func (*Filesystem) String ¶
func (m *Filesystem) String() string
type Mounter ¶
type Mounter interface { // Mount mounts a repository available as a fuse filesystem at mountPoint. // Mount blocks and will return once the volume is unmounted. MountAndCreate( mountPoint string, shard *pfsclient.Shard, commitMounts []*CommitMount, ready chan bool, debug bool, allCommits bool, ) error Mount( mountPoint string, shard *pfsclient.Shard, commitMounts []*CommitMount, ready chan bool, debug bool, allCommits bool, ) error // Unmount unmounts a mounted filesystem (duh). // There's nothing special about this unmount, it's just doing a syscall under the hood. Unmount(mountPoint string) error }
A Mounter mounts fuse filesystems.
type Node ¶
type Node struct { File *pfs.File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` RepoAlias string `protobuf:"bytes,2,opt,name=repo_alias,json=repoAlias" json:"repo_alias,omitempty"` Write bool `protobuf:"varint,3,opt,name=write" json:"write,omitempty"` Shard *pfs.Shard `protobuf:"bytes,4,opt,name=shard" json:"shard,omitempty"` Modified *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=modified" json:"modified,omitempty"` }
func (*Node) Descriptor ¶
func (*Node) GetModified ¶
func (m *Node) GetModified() *google_protobuf2.Timestamp
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type Root ¶
type Root struct { Filesystem *Filesystem `protobuf:"bytes,1,opt,name=filesystem" json:"filesystem,omitempty"` Result *Node `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*Root) Descriptor ¶
func (*Root) GetFilesystem ¶
func (m *Root) GetFilesystem() *Filesystem
func (*Root) ProtoMessage ¶
func (*Root) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.