fs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDriver

type FileDriver interface {
	io.ReadWriteCloser
	io.Seeker
	Stat() (os.FileInfo, error)
}

type FileSystem

type FileSystem interface {
	Open(file string, args ...int) (FileDriver, error)
	Remove(file string) error
}

func NewRelativeFileFactory

func NewRelativeFileFactory(root string, parent FileSystem) FileSystem

type FileUtilsFactory

type FileUtilsFactory struct {
	FileSystem
}

func (FileUtilsFactory) ReadBuffer

func (f FileUtilsFactory) ReadBuffer(file string, args ...int) (base.Buffer, error)

func (FileUtilsFactory) ReadString

func (f FileUtilsFactory) ReadString(file string, args ...int) (string, error)

func (FileUtilsFactory) WriteBuffer

func (f FileUtilsFactory) WriteBuffer(file string, buf base.Buffer, args ...int) (int, error)

func (FileUtilsFactory) WriteString

func (f FileUtilsFactory) WriteString(file string, str string, args ...int) (int, error)

type HttpFile

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

func (*HttpFile) Close

func (f *HttpFile) Close() error

func (*HttpFile) Read

func (f *HttpFile) Read(b []byte) (int, error)

func (*HttpFile) Seek

func (f *HttpFile) Seek(offset int64, whence int) (int64, error)

func (*HttpFile) Stat

func (f *HttpFile) Stat() (os.FileInfo, error)

func (*HttpFile) Write

func (f *HttpFile) Write(b []byte) (int, error)

type HttpFileFactory

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

func (*HttpFileFactory) Open

func (f *HttpFileFactory) Open(file string, args ...int) (FileDriver, error)

func (*HttpFileFactory) Remove

func (f *HttpFileFactory) Remove(file string) error

type HttpFileInfo

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

func (*HttpFileInfo) IsDir

func (f *HttpFileInfo) IsDir() bool

func (*HttpFileInfo) ModTime

func (f *HttpFileInfo) ModTime() time.Time

func (*HttpFileInfo) Mode

func (f *HttpFileInfo) Mode() os.FileMode

func (*HttpFileInfo) Name

func (f *HttpFileInfo) Name() string

func (*HttpFileInfo) Size

func (f *HttpFileInfo) Size() int64

func (*HttpFileInfo) Sys

func (f *HttpFileInfo) Sys() interface{}

type NativeFile

type NativeFile struct{}

type NativeFileFactory

type NativeFileFactory struct{}

func (NativeFileFactory) Open

func (NativeFileFactory) Open(file string, args ...int) (FileDriver, error)

func (NativeFileFactory) Remove

func (NativeFileFactory) Remove(file string) error

type RelativeFileFactory

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

func (*RelativeFileFactory) Open

func (f *RelativeFileFactory) Open(file string, args ...int) (FileDriver, error)

func (*RelativeFileFactory) Remove

func (f *RelativeFileFactory) Remove(file string) error

Jump to

Keyboard shortcuts

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