smb

package
v1.4.5 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 Smb

type Smb struct {
	// contains filtered or unexported fields
}

func NewSmbDrive

func NewSmbDrive(addr, username, password string) *Smb

func (*Smb) Connect

func (s *Smb) Connect() error

func (*Smb) Delete

func (s *Smb) Delete(path string) error

func (*Smb) Dial

func (s *Smb) Dial() (*smb2.Session, error)

func (*Smb) Download

func (s *Smb) Download(path string) (io.ReadCloser, int64, error)

func (*Smb) DownloadWithOffset

func (s *Smb) DownloadWithOffset(path string, offset int64) (io.ReadCloser, int64, error)

func (*Smb) IsExist

func (s *Smb) IsExist(path string) (bool, error)

func (*Smb) IsRootPathSet

func (s *Smb) IsRootPathSet() bool

func (*Smb) IsShareSet

func (s *Smb) IsShareSet() bool

func (*Smb) ListShare

func (s *Smb) ListShare() ([]string, error)

func (*Smb) Range

func (s *Smb) Range(dir string, deal func(fs.FileInfo) bool) error

func (*Smb) SetRootPath

func (s *Smb) SetRootPath(rootPath string) error

func (*Smb) SetShare

func (s *Smb) SetShare(shareName string) error

func (*Smb) Upload

func (s *Smb) Upload(path string, content 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