Documentation
¶
Index ¶
- type FileDriver
- type FileSystem
- type FileUtilsFactory
- func (f *FileUtilsFactory) ReadBuffer(file string, args ...int) (base.Buffer, error)
- func (f *FileUtilsFactory) ReadString(file string, args ...int) (string, error)
- func (f *FileUtilsFactory) WriteBuffer(file string, buf base.Buffer, args ...int) (int, error)
- func (f *FileUtilsFactory) WriteString(file string, str string, args ...int) (int, error)
- type HttpFile
- type HttpFileFactory
- func (f *HttpFileFactory) Exist(file string) bool
- func (*HttpFileFactory) Mkdir(string, int) error
- func (f *HttpFileFactory) Open(file string, args ...int) (FileDriver, error)
- func (f *HttpFileFactory) Remove(file string) error
- func (*HttpFileFactory) Rename(src, dst string) error
- func (*HttpFileFactory) Walk(root string, callback filepath.WalkFunc) error
- type HttpFileInfo
- type NativeFile
- type NativeFileFactory
- func (NativeFileFactory) Exist(file string) bool
- func (NativeFileFactory) Mkdir(file string, mode int) error
- func (NativeFileFactory) Open(file string, args ...int) (FileDriver, error)
- func (NativeFileFactory) Remove(file string) error
- func (NativeFileFactory) Rename(src, dst string) error
- func (NativeFileFactory) Walk(root string, callback filepath.WalkFunc) error
- type RelativeFileFactory
- func (f *RelativeFileFactory) Exist(file string) bool
- func (f *RelativeFileFactory) Mkdir(file string, mode int) error
- func (f *RelativeFileFactory) Open(file string, args ...int) (FileDriver, error)
- func (f *RelativeFileFactory) Remove(file string) error
- func (f *RelativeFileFactory) Rename(src, dst string) error
- func (f *RelativeFileFactory) Walk(root string, callback filepath.WalkFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDriver ¶
type FileSystem ¶
type FileSystem interface { Open(file string, args ...int) (FileDriver, error) Remove(file string) error Rename(src, dst string) error Exist(file string) bool Mkdir(file string, mode int) error Walk(root string, callback filepath.WalkFunc) error }
func NewRelativeFileFactory ¶
func NewRelativeFileFactory(root string, parent FileSystem) FileSystem
type FileUtilsFactory ¶
type FileUtilsFactory struct {
// contains filtered or unexported fields
}
func NewFileUtilsFactory ¶ added in v1.0.6
func NewFileUtilsFactory(filesystem FileSystem) *FileUtilsFactory
func (*FileUtilsFactory) ReadBuffer ¶
func (*FileUtilsFactory) ReadString ¶
func (f *FileUtilsFactory) ReadString(file string, args ...int) (string, error)
func (*FileUtilsFactory) WriteBuffer ¶
func (*FileUtilsFactory) WriteString ¶
type HttpFileFactory ¶
type HttpFileFactory struct {
// contains filtered or unexported fields
}
func (*HttpFileFactory) Exist ¶ added in v1.0.2
func (f *HttpFileFactory) Exist(file string) bool
func (*HttpFileFactory) Open ¶
func (f *HttpFileFactory) Open(file string, args ...int) (FileDriver, error)
func (*HttpFileFactory) Remove ¶
func (f *HttpFileFactory) Remove(file string) error
func (*HttpFileFactory) Rename ¶ added in v1.0.2
func (*HttpFileFactory) Rename(src, dst 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) Exist ¶ added in v1.0.2
func (NativeFileFactory) Exist(file string) bool
func (NativeFileFactory) Mkdir ¶ added in v1.0.2
func (NativeFileFactory) Mkdir(file string, mode int) error
func (NativeFileFactory) Open ¶
func (NativeFileFactory) Open(file string, args ...int) (FileDriver, error)
func (NativeFileFactory) Remove ¶
func (NativeFileFactory) Remove(file string) error
func (NativeFileFactory) Rename ¶ added in v1.0.2
func (NativeFileFactory) Rename(src, dst string) error
type RelativeFileFactory ¶
type RelativeFileFactory struct {
// contains filtered or unexported fields
}
func (*RelativeFileFactory) Exist ¶ added in v1.0.2
func (f *RelativeFileFactory) Exist(file string) bool
func (*RelativeFileFactory) Mkdir ¶ added in v1.0.2
func (f *RelativeFileFactory) Mkdir(file string, mode int) error
func (*RelativeFileFactory) Open ¶
func (f *RelativeFileFactory) Open(file string, args ...int) (FileDriver, error)
func (*RelativeFileFactory) Remove ¶
func (f *RelativeFileFactory) Remove(file string) error
func (*RelativeFileFactory) Rename ¶ added in v1.0.2
func (f *RelativeFileFactory) Rename(src, dst string) error
Click to show internal directories.
Click to hide internal directories.