nfs

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 NewNfsDrive(url string) (*Nfs, error)

func (*Nfs) Cli

func (d *Nfs) Cli() *nfs.Target

func (*Nfs) Delete

func (d *Nfs) Delete(path string) error

func (*Nfs) Download

func (d *Nfs) Download(path string) (io.ReadCloser, int64, error)

func (*Nfs) DownloadWithOffset

func (d *Nfs) DownloadWithOffset(path string, offset int64) (io.ReadCloser, int64, error)

func (*Nfs) IsExist

func (d *Nfs) IsExist(path string) (bool, error)

func (*Nfs) IsRootPathSet

func (d *Nfs) IsRootPathSet() bool

func (*Nfs) MkdirAll

func (d *Nfs) MkdirAll(path string, perm fs.FileMode) error

MkdirAll makes a directory path and all parents that does not exist by d.cli.Mkdir.

func (*Nfs) Range

func (d *Nfs) Range(dir string, deal func(fs.FileInfo) bool) error

func (*Nfs) SetRootPath

func (d *Nfs) SetRootPath(rootPath string) error

func (*Nfs) Upload

func (d *Nfs) Upload(path string, reader io.ReadCloser, size int64, lastModified time.Time) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL