redisfs

package
v0.0.0-...-33dd240 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisConn

func NewRedisConn(host string, port int, db int, auth string) (redis.Conn, error)

func NewRedisFile

func NewRedisFile(pool *redis.Pool, key string) nodefs.File

Types

type RedisFs

type RedisFs struct {
	pathfs.FileSystem
	Host string
	Port int
	Auth string
	Dirs map[string][]string
	Db   int
	Sep  string
	// contains filtered or unexported fields
}

func (*RedisFs) Create

func (fs *RedisFs) Create(name string, flags uint32, mode uint32, ctx *fuse.Context) (nodefs.File, fuse.Status)

func (*RedisFs) CreateRedisConn

func (fs *RedisFs) CreateRedisConn() (redis.Conn, error)

func (*RedisFs) GetAttr

func (fs *RedisFs) GetAttr(name string, ctx *fuse.Context) (*fuse.Attr, fuse.Status)

func (*RedisFs) Init

func (fs *RedisFs) Init()

func (*RedisFs) Mkdir

func (fs *RedisFs) Mkdir(name string, mode uint32, ctx *fuse.Context) fuse.Status

func (*RedisFs) Open

func (fs *RedisFs) Open(name string, flags uint32, ctx *fuse.Context) (nodefs.File, fuse.Status)

func (*RedisFs) OpenDir

func (fs *RedisFs) OpenDir(name string, ctx *fuse.Context) ([]fuse.DirEntry, fuse.Status)

func (*RedisFs) Rename

func (fs *RedisFs) Rename(oldName string, newName string, ctx *fuse.Context) fuse.Status

func (*RedisFs) Rmdir

func (fs *RedisFs) Rmdir(name string, ctx *fuse.Context) fuse.Status
func (fs *RedisFs) Unlink(name string, ctx *fuse.Context) fuse.Status

Jump to

Keyboard shortcuts

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