b2fs

package
v0.0.0-...-b29f9a4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(config *Config) error

Serve the B2FS

Types

type B2FS

type B2FS struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

B2FS defines the struct

func (*B2FS) GetAttr

func (client *B2FS) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

GetAttr gets file attributes

func (*B2FS) Open

func (client *B2FS) Open(name string, flags uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)

Open will open a file

func (*B2FS) OpenDir

func (client *B2FS) OpenDir(name string, context *fuse.Context) (c []fuse.DirEntry, code fuse.Status)

OpenDir will open directory

type Config

type Config struct {
	AccountID      string
	ApplicationKey string
	BucketID       string
	MountPoint     string
}

Config defines the configuration

type DirItem

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

DirItem is a list item

Jump to

Keyboard shortcuts

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