Documentation ¶
Index ¶
- Constants
- func AppendFile(p string) (io.ReadWriteCloser, error)
- func Close()
- func CreateFile(p string) (io.WriteCloser, string, error)
- func CreateFiles(s File, p string) (io.ReadWriteCloser, string, error)
- func ExistsFile(p string) bool
- func Init(f File)
- func Link(oldname, newname string) error
- func MkdirAll(p string, m os.FileMode) error
- func NewPackFileInfo(p string, b []byte) *packFileInfo
- func NewPackPathInfo(p string) *packFileInfo
- func NewReadCloser(r io.Reader) io.ReadCloser
- func NewVoidFileInfo(p string, n int) *voidFileInfo
- func NewVoidPathInfo(p string) *voidFileInfo
- func NewWriteCloser(w kit.Any, c kit.Any) io.WriteCloser
- func OpenFile(p string) (io.ReadCloser, error)
- func ReadDir(p string) (list []os.FileInfo, err error)
- func ReadFile(p string) ([]byte, error)
- func Remove(p string) error
- func RemoveAll(p string) error
- func Rename(oldname, newname string) error
- func StatFile(p string) (os.FileInfo, error)
- func Symlink(oldname, newname string) error
- func WriteFile(p string, b []byte) error
- type DiskFile
- func (s *DiskFile) AppendFile(p string) (io.ReadWriteCloser, error)
- func (s *DiskFile) Close() error
- func (s *DiskFile) CreateFile(p string) (io.WriteCloser, string, error)
- func (s *DiskFile) Link(oldname, newname string) error
- func (s *DiskFile) MkdirAll(p string, m os.FileMode) error
- func (s *DiskFile) OpenFile(p string) (io.ReadCloser, error)
- func (s *DiskFile) ReadDir(p string) ([]os.FileInfo, error)
- func (s *DiskFile) Remove(p string) error
- func (s *DiskFile) RemoveAll(p string) error
- func (s *DiskFile) Rename(oldname, newname string) error
- func (s *DiskFile) StatFile(p string) (os.FileInfo, error)
- func (s *DiskFile) Symlink(oldname, newname string) error
- func (s *DiskFile) WriteFile(p string, b []byte) error
- type File
- type FileInfo
- type Lock
- type MultiFile
- func (s *MultiFile) AppendFile(p string) (io.ReadWriteCloser, error)
- func (s *MultiFile) Close() error
- func (s *MultiFile) CreateFile(p string) (io.WriteCloser, string, error)
- func (s *MultiFile) Link(oldname, newname string) error
- func (s *MultiFile) MkdirAll(p string, m os.FileMode) error
- func (s *MultiFile) OpenFile(p string) (io.ReadCloser, error)
- func (s *MultiFile) ReadDir(p string) (list []os.FileInfo, err error)
- func (s *MultiFile) Remove(p string) error
- func (s *MultiFile) RemoveAll(p string) error
- func (s *MultiFile) Rename(oldname, newname string) error
- func (s *MultiFile) StatFile(p string) (os.FileInfo, error)
- func (s *MultiFile) Symlink(oldname, newname string) error
- func (s *MultiFile) WriteFile(p string, b []byte) error
- type PackFile
- type VoidFile
- func (s *VoidFile) AppendFile(p string) (io.ReadWriteCloser, error)
- func (s *VoidFile) Close() error
- func (s *VoidFile) CreateFile(p string) (io.WriteCloser, string, error)
- func (s *VoidFile) Link(oldname, newname string) error
- func (s *VoidFile) MkdirAll(p string, m os.FileMode) error
- func (s *VoidFile) OpenFile(p string) (io.ReadCloser, error)
- func (s *VoidFile) ReadDir(p string) ([]os.FileInfo, error)
- func (s *VoidFile) Remove(p string) error
- func (s *VoidFile) RemoveAll(p string) error
- func (s *VoidFile) Rename(oldname, newname string) error
- func (s *VoidFile) StatFile(p string) (os.FileInfo, error)
- func (s *VoidFile) Symlink(oldname, newname string) error
- func (s *VoidFile) WriteFile(p string, b []byte) error
Constants ¶
View Source
const ( PS = "/" PT = "." FILE_MODE = 0640 PATH_MODE = 0750 NULL = "/dev/null" STDIN = "/dev/stdin" STDOUT = "/dev/stdout" STDERR = "/dev/stderr" )
View Source
const FILE = "file"
Variables ¶
This section is empty.
Functions ¶
func AppendFile ¶
func AppendFile(p string) (io.ReadWriteCloser, error)
func Close ¶
func Close()
func CreateFiles ¶ added in v0.8.1
func NewReadCloser ¶
func NewReadCloser(r io.Reader) io.ReadCloser
func OpenFile ¶
func OpenFile(p string) (io.ReadCloser, error)
Types ¶
type File ¶
type File interface { StatFile(string) (os.FileInfo, error) OpenFile(string) (io.ReadCloser, error) CreateFile(string) (io.WriteCloser, string, error) AppendFile(string) (io.ReadWriteCloser, error) WriteFile(string, []byte) error ReadDir(string) ([]os.FileInfo, error) MkdirAll(string, os.FileMode) error RemoveAll(string) error Remove(string) error Rename(string, string) error Symlink(string, string) error Link(string, string) error Close() error }
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
type MultiFile ¶
type MultiFile struct {
// contains filtered or unexported fields
}
func (*MultiFile) CreateFile ¶
Click to show internal directories.
Click to hide internal directories.