filesystem

package
v1.2.132559162 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(mount string, conn *fuse.Conn) error

Close unmounts the filesystem and waits for fs.Serve to return. Any returned error will be stored in Err. It is safe to call Close multiple times.

func Run

func Run(mountpoint string, filterToSub string, editMode bool, demoMode bool) (func(), error)

Run starts a fuze based filesystem over the Azure ARM API

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

func (*FS) Root

func (f *FS) Root() (fs.Node, error)

type File

type File struct {
	fs.NodeRef
	// contains filtered or unexported fields
}

File represents the root response from a treeNode returned from an expander

func (*File) Attr

func (f *File) Attr(ctx context.Context, a *fuse.Attr) error

func (*File) Open

func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)

func (*File) Read

func (f *File) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error

func (*File) Release

func (f *File) Release(ctx context.Context, req *fuse.ReleaseRequest) error

func (*File) Remove

func (d *File) Remove(ctx context.Context, req *fuse.RemoveRequest) error

func (*File) Setattr

func (f *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error

func (*File) Write

func (f *File) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error

type Folder

type Folder struct {
	fuse.Dirent
	// contains filtered or unexported fields
}

func (*Folder) Attr

func (d *Folder) Attr(ctx context.Context, a *fuse.Attr) error

func (*Folder) LoadNodeFromARM

func (d *Folder) LoadNodeFromARM()

func (*Folder) Lookup

func (d *Folder) Lookup(ctx context.Context, name string) (fs.Node, error)

func (*Folder) ReadDirAll

func (d *Folder) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

func (*Folder) Remove

func (d *Folder) Remove(ctx context.Context, req *fuse.RemoveRequest) error

Jump to

Keyboard shortcuts

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