zipfs

package
v0.0.0-...-f4ec7a2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2011 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_PREFIX = "config/"
)

Variables

This section is empty.

Functions

func HeaderToFileInfo

func HeaderToFileInfo(h *tar.Header) *os.FileInfo

Types

type MemFile

type MemFile interface {
	Stat() *os.FileInfo
	Data() []byte
}

type MemTree

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

func NewMemTree

func NewMemTree() *MemTree

func NewTarCompressedTree

func NewTarCompressedTree(name string, format string) (*MemTree, os.Error)

func NewTarTree

func NewTarTree(r io.Reader) *MemTree

func NewZipTree

func NewZipTree(name string) (*MemTree, os.Error)

NewZipTree creates a new file-system for the zip file named name.

func (*MemTree) FindDir

func (me *MemTree) FindDir(name string) *MemTree

func (*MemTree) Lookup

func (me *MemTree) Lookup(name string) (*MemTree, MemFile)

func (*MemTree) Print

func (me *MemTree) Print(indent int)

type MemTreeFileSystem

type MemTreeFileSystem struct {
	fuse.DefaultFileSystem
	// contains filtered or unexported fields
}

func NewArchiveFileSystem

func NewArchiveFileSystem(name string) (fs *MemTreeFileSystem, err os.Error)

func NewMemTreeFileSystem

func NewMemTreeFileSystem(t *MemTree) *MemTreeFileSystem

func (*MemTreeFileSystem) GetAttr

func (me *MemTreeFileSystem) GetAttr(name string) (*os.FileInfo, fuse.Status)

func (*MemTreeFileSystem) Open

func (me *MemTreeFileSystem) Open(name string, flags uint32) (fuseFile fuse.File, code fuse.Status)

func (*MemTreeFileSystem) OpenDir

func (me *MemTreeFileSystem) OpenDir(name string) (stream chan fuse.DirEntry, code fuse.Status)

type MultiZipFs

type MultiZipFs struct {
	Connector *fuse.FileSystemConnector

	fuse.DefaultFileSystem
	// contains filtered or unexported fields
}

MultiZipFs is a path filesystem that mounts zipfiles. It needs a reference to the FileSystemConnector to be able to execute mounts.

func NewMultiZipFs

func NewMultiZipFs() *MultiZipFs

func (*MultiZipFs) Create

func (me *MultiZipFs) Create(name string, flags uint32, mode uint32) (file fuse.File, code fuse.Status)

func (*MultiZipFs) GetAttr

func (me *MultiZipFs) GetAttr(name string) (*os.FileInfo, fuse.Status)

func (*MultiZipFs) Mount

func (me *MultiZipFs) Mount(connector *fuse.FileSystemConnector) fuse.Status

func (*MultiZipFs) Open

func (me *MultiZipFs) Open(name string, flags uint32) (file fuse.File, code fuse.Status)

func (*MultiZipFs) OpenDir

func (me *MultiZipFs) OpenDir(name string) (stream chan fuse.DirEntry, code fuse.Status)
func (me *MultiZipFs) Unlink(name string) (code fuse.Status)

type TarFile

type TarFile struct {
	tar.Header
	// contains filtered or unexported fields
}

func (*TarFile) Data

func (me *TarFile) Data() []byte

func (*TarFile) Stat

func (me *TarFile) Stat() *os.FileInfo

type ZipFile

type ZipFile struct {
	*zip.File
}

func (*ZipFile) Data

func (me *ZipFile) Data() []byte

func (*ZipFile) Stat

func (me *ZipFile) Stat() *os.FileInfo

Jump to

Keyboard shortcuts

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