Documentation
¶
Index ¶
- type Fsio
- func (fsio *Fsio) Confirm(message string) bool
- func (fsio *Fsio) CopyFile(srcPath string, dstPath string) error
- func (fsio *Fsio) IsDirOrFileExist(path string) bool
- func (fsio *Fsio) ListDirs(path string) []string
- func (fsio *Fsio) ListFilesRecursively(path string) []string
- func (fsio *Fsio) ReadStream(path string) *os.File
- func (fsio *Fsio) RemoveFile(path string) error
- func (fsio *Fsio) SelectDir(message string) string
- type FsioInterface
- type FsioMock
- type Log
- type LogInterface
- type LogMock
- type Repos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fsio ¶
type Fsio struct {
// contains filtered or unexported fields
}
func (*Fsio) IsDirOrFileExist ¶
func (*Fsio) ListFilesRecursively ¶
func (*Fsio) RemoveFile ¶
type FsioInterface ¶
type FsioInterface interface { Confirm(message string) bool SelectDir(message string) string IsDirOrFileExist(path string) bool ListDirs(path string) []string ListFilesRecursively(path string) []string ReadStream(path string) *os.File RemoveFile(path string) error CopyFile(srcPath string, dstPath string) error }
type FsioMock ¶
type FsioMock struct { Fsio // test cases depend on real filesystem now, so extends this struct. Out string }
func NewFsioMock ¶
func NewFsioMock() *FsioMock
type LogInterface ¶
type Repos ¶
type Repos struct { Log LogInterface Fsio FsioInterface }
Click to show internal directories.
Click to hide internal directories.