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 ¶
- type Attr
- type CommitMount
- func (*CommitMount) Descriptor() ([]byte, []int)
- func (m *CommitMount) GetAlias() string
- func (m *CommitMount) GetCommit() *pfs.Commit
- func (m *CommitMount) GetDiffMethod() *pfs.DiffMethod
- func (m *CommitMount) GetFullFile() bool
- func (m *CommitMount) GetLazy() bool
- func (m *CommitMount) GetShard() *pfs.Shard
- func (*CommitMount) ProtoMessage()
- func (m *CommitMount) Reset()
- func (m *CommitMount) String() string
- type DirectoryAttr
- type DirectoryCreate
- func (*DirectoryCreate) Descriptor() ([]byte, []int)
- func (m *DirectoryCreate) GetDirectory() *Node
- func (m *DirectoryCreate) GetError() string
- func (m *DirectoryCreate) GetResult() *Node
- func (*DirectoryCreate) ProtoMessage()
- func (m *DirectoryCreate) Reset()
- func (m *DirectoryCreate) String() string
- type DirectoryLookup
- func (*DirectoryLookup) Descriptor() ([]byte, []int)
- func (m *DirectoryLookup) GetDirectory() *Node
- func (m *DirectoryLookup) GetErr() string
- func (m *DirectoryLookup) GetName() string
- func (m *DirectoryLookup) GetResult() *Node
- func (*DirectoryLookup) ProtoMessage()
- func (m *DirectoryLookup) Reset()
- func (m *DirectoryLookup) String() string
- type DirectoryMkdir
- type DirectoryReadDirAll
- func (*DirectoryReadDirAll) Descriptor() ([]byte, []int)
- func (m *DirectoryReadDirAll) GetDirectory() *Node
- func (m *DirectoryReadDirAll) GetError() string
- func (m *DirectoryReadDirAll) GetResult() []*Dirent
- func (*DirectoryReadDirAll) ProtoMessage()
- func (m *DirectoryReadDirAll) Reset()
- func (m *DirectoryReadDirAll) String() string
- type Dirent
- type FileAttr
- type FileOpen
- type FileRead
- type FileRemove
- type FileSetAttr
- type FileWrite
- type Filesystem
- type Mounter
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetFile() *pfs.File
- func (m *Node) GetModified() *google_protobuf1.Timestamp
- func (m *Node) GetRepoAlias() string
- func (m *Node) GetShard() *pfs.Shard
- func (m *Node) GetWrite() bool
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- type Root
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,proto3" 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,proto3" json:"full_file,omitempty"` Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"` Shard *pfs.Shard `protobuf:"bytes,5,opt,name=shard" json:"shard,omitempty"` Lazy bool `protobuf:"varint,6,opt,name=lazy,proto3" json:"lazy,omitempty"` }
func (*CommitMount) Descriptor ¶
func (*CommitMount) Descriptor() ([]byte, []int)
func (*CommitMount) GetAlias ¶ added in v1.3.5
func (m *CommitMount) GetAlias() string
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) GetFullFile ¶ added in v1.3.5
func (m *CommitMount) GetFullFile() bool
func (*CommitMount) GetLazy ¶ added in v1.3.5
func (m *CommitMount) GetLazy() bool
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,proto3" json:"error,omitempty"` }
func (*DirectoryAttr) Descriptor ¶
func (*DirectoryAttr) Descriptor() ([]byte, []int)
func (*DirectoryAttr) GetDirectory ¶
func (m *DirectoryAttr) GetDirectory() *Node
func (*DirectoryAttr) GetError ¶ added in v1.3.5
func (m *DirectoryAttr) GetError() string
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,proto3" json:"error,omitempty"` }
func (*DirectoryCreate) Descriptor ¶
func (*DirectoryCreate) Descriptor() ([]byte, []int)
func (*DirectoryCreate) GetDirectory ¶
func (m *DirectoryCreate) GetDirectory() *Node
func (*DirectoryCreate) GetError ¶ added in v1.3.5
func (m *DirectoryCreate) GetError() string
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,proto3" json:"name,omitempty"` Result *Node `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"` Err string `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"` }
func (*DirectoryLookup) Descriptor ¶
func (*DirectoryLookup) Descriptor() ([]byte, []int)
func (*DirectoryLookup) GetDirectory ¶
func (m *DirectoryLookup) GetDirectory() *Node
func (*DirectoryLookup) GetErr ¶ added in v1.3.5
func (m *DirectoryLookup) GetErr() string
func (*DirectoryLookup) GetName ¶ added in v1.3.5
func (m *DirectoryLookup) GetName() string
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,proto3" json:"error,omitempty"` }
func (*DirectoryMkdir) Descriptor ¶
func (*DirectoryMkdir) Descriptor() ([]byte, []int)
func (*DirectoryMkdir) GetDirectory ¶
func (m *DirectoryMkdir) GetDirectory() *Node
func (*DirectoryMkdir) GetError ¶ added in v1.3.5
func (m *DirectoryMkdir) GetError() string
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,proto3" json:"error,omitempty"` }
func (*DirectoryReadDirAll) Descriptor ¶
func (*DirectoryReadDirAll) Descriptor() ([]byte, []int)
func (*DirectoryReadDirAll) GetDirectory ¶
func (m *DirectoryReadDirAll) GetDirectory() *Node
func (*DirectoryReadDirAll) GetError ¶ added in v1.3.5
func (m *DirectoryReadDirAll) GetError() string
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,proto3" json:"inode,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" 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,proto3" 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,proto3" 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,proto3" json:"data,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" 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,proto3" json:"name,omitempty"` Dir bool `protobuf:"varint,3,opt,name=dir,proto3" json:"dir,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` }
func (*FileRemove) Descriptor ¶
func (*FileRemove) Descriptor() ([]byte, []int)
func (*FileRemove) GetDir ¶ added in v1.3.5
func (m *FileRemove) GetDir() bool
func (*FileRemove) GetError ¶ added in v1.3.5
func (m *FileRemove) GetError() string
func (*FileRemove) GetFile ¶
func (m *FileRemove) GetFile() *Node
func (*FileRemove) GetName ¶ added in v1.3.5
func (m *FileRemove) GetName() string
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,proto3" json:"error,omitempty"` }
func (*FileSetAttr) Descriptor ¶
func (*FileSetAttr) Descriptor() ([]byte, []int)
func (*FileSetAttr) GetError ¶ added in v1.3.5
func (m *FileSetAttr) GetError() string
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,proto3" json:"data,omitempty"` Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" 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, oneMount bool, ) error Mount( mountPoint string, shard *pfsclient.Shard, commitMounts []*CommitMount, ready chan bool, debug bool, allCommits bool, oneMount 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,proto3" json:"repo_alias,omitempty"` Write bool `protobuf:"varint,3,opt,name=write,proto3" json:"write,omitempty"` Shard *pfs.Shard `protobuf:"bytes,4,opt,name=shard" json:"shard,omitempty"` Modified *google_protobuf1.Timestamp `protobuf:"bytes,5,opt,name=modified" json:"modified,omitempty"` }
func (*Node) Descriptor ¶
func (*Node) GetModified ¶
func (m *Node) GetModified() *google_protobuf1.Timestamp
func (*Node) GetRepoAlias ¶ added in v1.3.5
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,proto3" 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.