Documentation ¶
Index ¶
- type Attributes
- type BaseOperation
- type Disk
- type File
- func (f *File) Append(content []byte) error
- func (f *File) Copy(target string) error
- func (f *File) Delete() error
- func (f *File) Get() ([]byte, error)
- func (f *File) LastModified() int64
- func (f *File) Move(target string) error
- func (f *File) Name() string
- func (f *File) Path() string
- func (f *File) Prepend(content []byte) error
- func (f *File) Put(content []byte, visibility Visibility) error
- func (f *File) Size() int64
- func (f *File) Write(p []byte) (n int, err error)
- type Visibility
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type BaseOperation ¶
type Disk ¶
type Disk interface { BaseOperation Missing(file string) bool Size(file string) int64 LastModified(file string) int64 Path(file string) string Prepend(file string, content []byte) error Append(file string, content []byte) error Copy(source string, destination string) error Move(source string, destination string) error MakeDirectory(dir string, visibility Visibility) error DeleteDirectory(dir string) error AllFiles(dir string) []*File AllDirectories(dir string) []Disk File(file string) *File Prefix(prefix string) Disk Cwd() string }
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) LastModified ¶
Click to show internal directories.
Click to hide internal directories.