picasa

package
v0.0.0-...-156a9a6 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2016 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PICASA_INI_FILE     = ".picasa.ini"
	NOMEDIA_FILE        = ".nomedia"
	PICASA_VDIR_prefix  = "!"
	PICASA_VDIR_STARRED = "STARRED"
)

globals

View Source
const (
	RULE_IDENT_ROOT = 1
	RULE_MATCH_ROOT = "^$"

	RULE_IDENT_ROOT_STARRED_DIR = 10
	RULE_MATCH_ROOT_STARRED_DIR = "^" + PICASA_VDIR_prefix + PICASA_VDIR_STARRED + "$"

	RULE_IDENT_ROOT_STARRED_YEAR = 11
	RULE_MATCH_ROOT_STARRED_YEAR = "^" + PICASA_VDIR_prefix + PICASA_VDIR_STARRED + "/(\\d{4})$"

	RULE_IDENT_ROOT_STARRED_YEAR_FILE = 12
	RULE_MATCH_ROOT_STARRED_YEAR_FILE = "^" + PICASA_VDIR_prefix + PICASA_VDIR_STARRED + "/\\d{4}/" + rule_MATCH_FILE + "$"

	RULE_IDENT_SUBDIR_STARRED_DIR = 100
	RULE_MATCH_SUBDIR_STARRED_DIR = "^(.*)/" + PICASA_VDIR_prefix + PICASA_VDIR_STARRED + "$"

	RULE_IDENT_SUBDIR_STARRED_FILE = 101
	RULE_MATCH_SUBDIR_STARRED_FILE = "^(.*)/" + PICASA_VDIR_prefix + PICASA_VDIR_STARRED + "/" + rule_MATCH_FILE + "$"
)

rules ident

View Source
const (
	CACHE_EXPIRE = 1800
)

other presets

Variables

This section is empty.

Functions

func IdentifyPicasaFS

func IdentifyPicasaFS(root string) bool

Types

type PicasaFS

type PicasaFS struct {
	picfs.RuleFS
	// contains filtered or unexported fields
}

PicasaFS definition

func NewPicasaFS

func NewPicasaFS(root string) PicasaFS

func (*PicasaFS) CAccess

func (fs *PicasaFS) CAccess(name string, mode uint32, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CChmod

func (fs *PicasaFS) CChmod(name string, mode uint32, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CChown

func (fs *PicasaFS) CChown(name string, uid uint32, gid uint32, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CCreate

func (fs *PicasaFS) CCreate(name string, flags uint32, mode uint32, fctx *fuse.Context, ctx picfs.Context) (nodefs.File, fuse.Status)

func (*PicasaFS) CGetAttr

func (fs *PicasaFS) CGetAttr(name string, fctx *fuse.Context, ctx picfs.Context) (attr *fuse.Attr, status fuse.Status)

func (*PicasaFS) CGetXAttr

func (fs *PicasaFS) CGetXAttr(name string, attribute string, fctx *fuse.Context, ctx picfs.Context) ([]byte, fuse.Status)
func (fs *PicasaFS) CLink(oldName string, newName string, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CListXAttr

func (fs *PicasaFS) CListXAttr(name string, fctx *fuse.Context, ctx picfs.Context) ([]string, fuse.Status)

func (*PicasaFS) CMkdir

func (fs *PicasaFS) CMkdir(name string, mode uint32, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CMknod

func (fs *PicasaFS) CMknod(name string, mode uint32, dev uint32, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) COpen

func (fs *PicasaFS) COpen(name string, flags uint32, fctx *fuse.Context, ctx picfs.Context) (nodefs.File, fuse.Status)

func (*PicasaFS) COpenDir

func (fs *PicasaFS) COpenDir(name string, fctx *fuse.Context, ctx picfs.Context) ([]fuse.DirEntry, fuse.Status)
func (fs *PicasaFS) CReadlink(name string, fctx *fuse.Context, ctx picfs.Context) (string, fuse.Status)

func (*PicasaFS) CRemoveXAttr

func (fs *PicasaFS) CRemoveXAttr(name string, attr string, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CRename

func (fs *PicasaFS) CRename(oldName string, newName string, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CRmdir

func (fs *PicasaFS) CRmdir(name string, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CSetXAttr

func (fs *PicasaFS) CSetXAttr(name string, attr string, data []byte, flags int, fctx *fuse.Context, ctx picfs.Context) fuse.Status
func (fs *PicasaFS) CSymlink(value string, linkName string, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CTruncate

func (fs *PicasaFS) CTruncate(name string, size uint64, fctx *fuse.Context, ctx picfs.Context) fuse.Status
func (fs *PicasaFS) CUnlink(name string, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) CUtimens

func (fs *PicasaFS) CUtimens(name string, Atime *time.Time, Mtime *time.Time, fctx *fuse.Context, ctx picfs.Context) fuse.Status

func (*PicasaFS) StatFs

func (fs *PicasaFS) StatFs(name string) *fuse.StatfsOut

func (*PicasaFS) String

func (fs *PicasaFS) String() string

Jump to

Keyboard shortcuts

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