smb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 6 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 {
	Address   string
	Directory string
	Mount     string
	Password  string
	Port      string
	Session   *smb2.Session
	Share     *smb2.Share
	User      string
}

func New

func New(address string, directory string, mount string, password string, port string, user string) Smb

func (*Smb) Dial

func (s *Smb) Dial() error

func (Smb) Get

func (s Smb) Get(p string) ([]byte, error)

func (Smb) Ls

func (s Smb) Ls(r string) ([]os.FileInfo, error)

func (Smb) Mkdir

func (s Smb) Mkdir(d string) error

func (Smb) Put

func (s Smb) Put(path string, data []byte) (int, error)

Jump to

Keyboard shortcuts

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