Documentation
¶
Index ¶
- type FakeSystem
- func (_ FakeSystem) CopyDir(src string, dst string) error
- func (_ FakeSystem) CopyFile(src string, dst string) error
- func (_ FakeSystem) GitClone(src string, dst string) error
- func (_ FakeSystem) OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)
- func (_ FakeSystem) ReadFile(path string) ([]byte, error)
- func (_ FakeSystem) RemoveAll(path string) error
- func (_ FakeSystem) Rename(path string, newpath string) error
- func (_ FakeSystem) Stat(path string) (os.FileInfo, error)
- func (_ FakeSystem) TimDirectory() (string, error)
- func (_ FakeSystem) TouchDir(path string) error
- func (_ FakeSystem) TouchFile(path string) error
- func (_ FakeSystem) WriteFile(path string, data []byte, perm os.FileMode) error
- type RealSystem
- func (_ RealSystem) CopyDir(src string, dest string) error
- func (_ RealSystem) CopyFile(src string, dest string) error
- func (_ RealSystem) GitClone(src string, dest string) error
- func (_ RealSystem) OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)
- func (_ RealSystem) ReadFile(path string) ([]byte, error)
- func (_ RealSystem) RemoveAll(path string) error
- func (_ RealSystem) Rename(path string, newpath string) error
- func (_ RealSystem) Stat(path string) (os.FileInfo, error)
- func (_ RealSystem) TimDirectory() (string, error)
- func (_ RealSystem) TouchDir(path string) error
- func (_ RealSystem) TouchFile(path string) error
- func (_ RealSystem) WriteFile(path string, data []byte, perm os.FileMode) error
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSystem ¶
type FakeSystem struct{}
func (FakeSystem) RemoveAll ¶
func (_ FakeSystem) RemoveAll(path string) error
func (FakeSystem) TimDirectory ¶
func (_ FakeSystem) TimDirectory() (string, error)
func (FakeSystem) TouchDir ¶
func (_ FakeSystem) TouchDir(path string) error
func (FakeSystem) TouchFile ¶
func (_ FakeSystem) TouchFile(path string) error
type RealSystem ¶
type RealSystem struct{}
func (RealSystem) RemoveAll ¶
func (_ RealSystem) RemoveAll(path string) error
func (RealSystem) TimDirectory ¶
func (_ RealSystem) TimDirectory() (string, error)
func (RealSystem) TouchDir ¶
func (_ RealSystem) TouchDir(path string) error
func (RealSystem) TouchFile ¶
func (_ RealSystem) TouchFile(path string) error
type System ¶
type System interface {
CopyDir(src string, dst string) error
CopyFile(src string, dst string) error
GitClone(src string, dest string) error
OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)
ReadFile(path string) ([]byte, error)
RemoveAll(path string) error
Rename(path string, newpath string) error
TimDirectory() (string, error)
TouchDir(path string) error
TouchFile(path string) error
Stat(path string) (os.FileInfo, error)
WriteFile(path string, data []byte, perm os.FileMode) error
}
Click to show internal directories.
Click to hide internal directories.