Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIllegalDir = errors.New("illegal file path reference outside of working directory")
ErrIllegalDir is returned, if the file path reference is outside of the working directory.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func NewDirectory ¶
NewDirectory returns a new Directory filesystem adapter for a given directory.
type FS ¶
type FS interface { Create(string) (io.WriteCloser, error) WriteFile(name string, data []byte, perm os.FileMode) error }
FS is interface for operating on the files of the underlying filesystem.
type ZIP ¶
type ZIP struct {
// contains filtered or unexported fields
}
ZIP is a filesystem adapter for zip files.
func NewZipFile ¶
NewZipFile returns a new ZIP filesystem adapter for a given filename.
func (*ZIP) Close ¶
Close closes the underlying zip writer and the file handle. It is only necessary if ZIP was initialised using NewZipFile
Directories ¶
Path | Synopsis |
---|---|
mocks
|
|
mock_fsadapter
Code generated by MockGen.
|
Code generated by MockGen. |
Click to show internal directories.
Click to hide internal directories.