Documentation ¶
Index ¶
- type Disk
- func (disk Disk) CreateFile(filename string) (*atomic.File, *probe.Error)
- func (disk Disk) GetFSInfo() map[string]string
- func (disk Disk) GetPath() string
- func (disk Disk) IsUsable() bool
- func (disk Disk) ListDir(dirname string) ([]os.FileInfo, *probe.Error)
- func (disk Disk) ListFiles(dirname string) ([]os.FileInfo, *probe.Error)
- func (disk Disk) MakeDir(dirname string) *probe.Error
- func (disk Disk) Open(filename string) (*os.File, *probe.Error)
- func (disk Disk) OpenFile(filename string, flags int, perm os.FileMode) (*os.File, *probe.Error)
- type InvalidArgument
- type UnsupportedFilesystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
Disk container for disk parameters
func (Disk) CreateFile ¶
CreateFile - create a file inside disk root path, replies with custome disk.File which provides atomic writes
type InvalidArgument ¶
type InvalidArgument struct{}
InvalidArgument invalid argument
func (InvalidArgument) Error ¶
func (e InvalidArgument) Error() string
type UnsupportedFilesystem ¶
type UnsupportedFilesystem struct {
Type string
}
UnsupportedFilesystem unsupported filesystem type
func (UnsupportedFilesystem) Error ¶
func (e UnsupportedFilesystem) Error() string
Click to show internal directories.
Click to hide internal directories.