Documentation ¶
Index ¶
- type Smb
- func (s *Smb) Connect() error
- func (s *Smb) Delete(path string) error
- func (s *Smb) Dial() (*smb2.Session, error)
- func (s *Smb) Download(path string) (io.ReadCloser, int64, error)
- func (s *Smb) DownloadWithOffset(path string, offset int64) (io.ReadCloser, int64, error)
- func (s *Smb) IsExist(path string) (bool, error)
- func (s *Smb) IsRootPathSet() bool
- func (s *Smb) IsShareSet() bool
- func (s *Smb) ListShare() ([]string, error)
- func (s *Smb) Range(dir string, deal func(fs.FileInfo) bool) error
- func (s *Smb) SetRootPath(rootPath string) error
- func (s *Smb) SetShare(shareName string) error
- func (s *Smb) Upload(path string, content 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 Smb ¶
type Smb struct {
// contains filtered or unexported fields
}
func NewSmbDrive ¶
func (*Smb) DownloadWithOffset ¶
func (*Smb) IsRootPathSet ¶
func (*Smb) IsShareSet ¶
func (*Smb) SetRootPath ¶
Click to show internal directories.
Click to hide internal directories.