fuse

package
v1.4.0-RC4 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: Apache-2.0 Imports: 24 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
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,proto3" json:"Mode,omitempty"`
}

func (*Attr) Descriptor

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

func (*Attr) GetMode added in v1.3.5

func (m *Attr) GetMode() uint32

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"`
	Alias  string      `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,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) GetLazy added in v1.3.5

func (m *CommitMount) GetLazy() bool

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

func (*Dirent) GetInode added in v1.3.5

func (m *Dirent) GetInode() uint64

func (*Dirent) GetName added in v1.3.5

func (m *Dirent) GetName() string

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,proto3" json:"error,omitempty"`
}

func (*FileAttr) Descriptor

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

func (*FileAttr) GetError added in v1.3.5

func (m *FileAttr) GetError() string

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,proto3" json:"error,omitempty"`
}

func (*FileOpen) Descriptor

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

func (*FileOpen) GetError added in v1.3.5

func (m *FileOpen) GetError() string

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

func (*FileRead) GetData added in v1.3.5

func (m *FileRead) GetData() string

func (*FileRead) GetError added in v1.3.5

func (m *FileRead) GetError() string

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

func (*FileWrite) GetData added in v1.3.5

func (m *FileWrite) GetData() string

func (*FileWrite) GetError added in v1.3.5

func (m *FileWrite) GetError() string

func (*FileWrite) GetFile

func (m *FileWrite) GetFile() *Node

func (*FileWrite) GetOffset added in v1.3.5

func (m *FileWrite) GetOffset() int64

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 {
	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) 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,
		commitMounts []*CommitMount,
		ready chan bool,
		debug bool,

		oneMount bool,
	) error

	Mount(
		mountPoint string,
		commitMounts []*CommitMount,
		ready chan bool,
		debug 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.

func NewMounter

func NewMounter(address string, apiClient *client.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,proto3" json:"repo_alias,omitempty"`
	Write     bool                        `protobuf:"varint,3,opt,name=write,proto3" json:"write,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) GetRepoAlias added in v1.3.5

func (m *Node) GetRepoAlias() string

func (*Node) GetWrite added in v1.3.5

func (m *Node) GetWrite() bool

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,proto3" json:"error,omitempty"`
}

func (*Root) Descriptor

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

func (*Root) GetError added in v1.3.5

func (m *Root) GetError() string

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