fuse

package
v1.0.370 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

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

func (*Attr) ProtoMessage

func (*Attr) ProtoMessage()

func (*Attr) Reset

func (m *Attr) Reset()

func (*Attr) String

func (m *Attr) String() string

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

func (*Dirent) ProtoMessage

func (*Dirent) ProtoMessage()

func (*Dirent) Reset

func (m *Dirent) Reset()

func (*Dirent) String

func (m *Dirent) String() string

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

func (*FileAttr) GetFile

func (m *FileAttr) GetFile() *Node

func (*FileAttr) GetResult

func (m *FileAttr) GetResult() *Attr

func (*FileAttr) ProtoMessage

func (*FileAttr) ProtoMessage()

func (*FileAttr) Reset

func (m *FileAttr) Reset()

func (*FileAttr) String

func (m *FileAttr) String() string

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

func (*FileOpen) GetFile

func (m *FileOpen) GetFile() *Node

func (*FileOpen) ProtoMessage

func (*FileOpen) ProtoMessage()

func (*FileOpen) Reset

func (m *FileOpen) Reset()

func (*FileOpen) String

func (m *FileOpen) String() string

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

func (*FileRead) GetFile

func (m *FileRead) GetFile() *Node

func (*FileRead) ProtoMessage

func (*FileRead) ProtoMessage()

func (*FileRead) Reset

func (m *FileRead) Reset()

func (*FileRead) String

func (m *FileRead) String() string

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

func (*FileWrite) GetFile

func (m *FileWrite) GetFile() *Node

func (*FileWrite) ProtoMessage

func (*FileWrite) ProtoMessage()

func (*FileWrite) Reset

func (m *FileWrite) Reset()

func (*FileWrite) String

func (m *FileWrite) String() string

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
}

func NewMounter

func NewMounter(address string, apiClient pfsclient.APIClient) Mounter

NewMounter creates a new Mounter. Address can be left blank, it's used only for aesthetic purposes.

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

func (*Node) GetFile

func (m *Node) GetFile() *pfs.File

func (*Node) GetModified

func (m *Node) GetModified() *google_protobuf2.Timestamp

func (*Node) GetShard

func (m *Node) GetShard() *pfs.Shard

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

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

func (*Root) GetFilesystem

func (m *Root) GetFilesystem() *Filesystem

func (*Root) GetResult

func (m *Root) GetResult() *Node

func (*Root) ProtoMessage

func (*Root) ProtoMessage()

func (*Root) Reset

func (m *Root) Reset()

func (*Root) String

func (m *Root) String() string

Jump to

Keyboard shortcuts

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