gbfs

package
v0.0.0-...-5a94a59 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QUERY = `SELECT files.path, files.hash, files.fs_modified, files.permissions, sizes.size, blob_entries.compression_alg
				FROM files
				    INNER JOIN sizes ON sizes.hash = files.hash
					INNER JOIN blob_entries ON blob_entries.hash = files.hash
				WHERE (?1 >= files.start AND (files.end > ?1 OR files.end IS NULL)) AND files.path ` + db.StartsWithPattern(2)

Functions

func Mount

func Mount(mountpoint string, path string, timestamp int64)

Types

type CompressedFileHandle

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

func (*CompressedFileHandle) Read

func (*CompressedFileHandle) Release

type Dir

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

func (*Dir) Attr

func (d *Dir) Attr(ctx context.Context, attr *fuse.Attr) error

func (*Dir) Lookup

func (d *Dir) Lookup(ctx context.Context, name string) (fuseFs.Node, error)

func (*Dir) ReadDirAll

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

type File

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

func (*File) Attr

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

func (*File) Open

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

type FileHandle

type FileHandle interface{}

type GBFS

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

func (GBFS) Root

func (gb GBFS) Root() (fuseFs.Node, error)

type UncompressedFileHandle

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

func (*UncompressedFileHandle) Read

Jump to

Keyboard shortcuts

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