Documentation ¶
Index ¶
- type Nfs
- func (d *Nfs) Cli() *nfs.Target
- func (d *Nfs) Delete(path string) error
- func (d *Nfs) Download(path string) (io.ReadCloser, int64, error)
- func (d *Nfs) DownloadWithOffset(path string, offset int64) (io.ReadCloser, int64, error)
- func (d *Nfs) IsExist(path string) (bool, error)
- func (d *Nfs) IsRootPathSet() bool
- func (d *Nfs) MkdirAll(path string, perm fs.FileMode) error
- func (d *Nfs) Range(dir string, deal func(fs.FileInfo) bool) error
- func (d *Nfs) SetRootPath(rootPath string) error
- func (d *Nfs) Upload(path string, reader io.ReadCloser, size int64, lastModified time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nfs ¶
type Nfs struct {
// contains filtered or unexported fields
}
func NewNfsDrive ¶
func (*Nfs) DownloadWithOffset ¶
func (*Nfs) IsRootPathSet ¶
func (*Nfs) MkdirAll ¶
MkdirAll makes a directory path and all parents that does not exist by d.cli.Mkdir.
func (*Nfs) SetRootPath ¶
Click to show internal directories.
Click to hide internal directories.