posixfs

package module
v0.0.0-...-f0404f3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2015 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

posixfs-driver

For Posfix File System

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicFileInfo

type BasicFileInfo struct {
	os.FileInfo
}

func (*BasicFileInfo) Group

func (f *BasicFileInfo) Group() string

func (*BasicFileInfo) Owner

func (f *BasicFileInfo) Owner() string

type PosixFSDriver

type PosixFSDriver struct {
	RootPath string
}

func (*PosixFSDriver) ChangeDir

func (driver *PosixFSDriver) ChangeDir(path string) error

func (*PosixFSDriver) DeleteDir

func (driver *PosixFSDriver) DeleteDir(path string) error

func (*PosixFSDriver) DeleteFile

func (driver *PosixFSDriver) DeleteFile(path string) error

func (*PosixFSDriver) GetFile

func (driver *PosixFSDriver) GetFile(path string, offset int64) (int64, io.ReadCloser, error)

func (*PosixFSDriver) ListDir

func (driver *PosixFSDriver) ListDir(path string, callback func(server.FileInfo) error) error

func (*PosixFSDriver) MakeDir

func (driver *PosixFSDriver) MakeDir(path string) error

func (*PosixFSDriver) PutFile

func (driver *PosixFSDriver) PutFile(destPath string, data io.Reader, appendData bool) (int64, error)

func (*PosixFSDriver) Rename

func (driver *PosixFSDriver) Rename(fromPath string, toPath string) error

func (*PosixFSDriver) Stat

func (driver *PosixFSDriver) Stat(path string) (server.FileInfo, error)

type PosixFSFactory

type PosixFSFactory struct {
	RootPath string
}

func NewPosixFSFactory

func NewPosixFSFactory(rootDir string) *PosixFSFactory

func (*PosixFSFactory) NewDriver

func (bdf *PosixFSFactory) NewDriver() (server.Driver, error)

Jump to

Keyboard shortcuts

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