Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilePredicate ¶
type Workspace ¶
type Workspace interface { // GetPath returns the path to the workspace directory. GetPath() string // FileFromUpload copies the contents of the given input stream into a new // file with the given name in the workspace directory. FileFromUpload(name string, in io.Reader) (*os.File, error) // Files returns a list of file names matching the given predicate // representing files in the workspace. Files(FilePredicate) ([]string, error) // Open the workspace file with the given name. Open(name string) (*os.File, error) // Delete the workspace file with the given name. Delete(name string) error // Stat returns the file info for the workspace file with the given name. Stat(name string) (os.FileInfo, error) }
Click to show internal directories.
Click to hide internal directories.