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 FileRead FileOpen FileWrite
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"` FromCommit *pfs.Commit `protobuf:"bytes,2,opt,name=from_commit,json=fromCommit" json:"from_commit,omitempty"` Alias string `protobuf:"bytes,3,opt,name=alias" json:"alias,omitempty"` Shard *pfs.Shard `protobuf:"bytes,4,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) GetFromCommit ¶
func (m *CommitMount) GetFromCommit() *pfs.Commit
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"` Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` }
func (*FileRead) Descriptor ¶
func (*FileRead) ProtoMessage ¶
func (*FileRead) ProtoMessage()
type FileWrite ¶
type FileWrite struct { File *Node `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Error string `protobuf:"bytes,2,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. Mount( mountPoint string, shard *pfsclient.Shard, commitMounts []*CommitMount, ready chan 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 }
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.