Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDevice ¶
type LocalFileService ¶
type LocalFileService interface { CreateFile(path string, perm os.FileMode) error CreateDirectory(path string, perm os.FileMode) error CreateDirectories(path string, perm os.FileMode) error CreateSymlink(target, link string) error ListDirectory(path string) ([]os.FileInfo, error) IsExists(path string) (bool, error) IsFile(path string) (bool, error) IsDirectory(path string) (bool, error) IsSymbolicLink(path string) (bool, error) OpenFile(path string, truncate bool) (*os.File, error) OpenFileReadOnly(path string) (*os.File, error) WriteFile(path string, content []byte) error DeleteFile(path string) error DeleteDirectory(path string, recursively bool) error TruncateFile(path string, size int64) error RenameFile(src, dest string) error Chown(path string, uid, gid int) error Lchown(path string, uid, gid int) error Stat(path string) (os.FileInfo, error) Lstat(path string) (os.FileInfo, error) GetDiskUsage(path string) (uint64, error) GetDiskInfo(path string) (disk.Info, error) GetMajorMinorNumber(path string, physical bool) (uint32, uint32, error) }
func NewLocalFileService ¶
func NewLocalFileService(limitedPaths []string) (LocalFileService, error)
Click to show internal directories.
Click to hide internal directories.