Documentation ¶
Index ¶
- func DefaultNetConnection(serverName string) (net.Conn, error)
- func DefaultSambaDialer(userName, password string) *smb2.Dialer
- func DefaultSambaSession(conn net.Conn, dialer *smb2.Dialer) (*smb2.Session, error)
- func NewDialer(username string, password string) *smb2.Dialer
- func NewSession(conn *net.Conn, dialer *smb2.Dialer) (*smb2.Session, error)
- func NewTCPConnection(server string) (*net.Conn, error)
- type Samba
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSambaDialer ¶
func DefaultSambaDialer(userName, password string) *smb2.Dialer
func DefaultSambaSession ¶
func NewSession ¶
Types ¶
type Samba ¶
type Samba struct { Host string Port uint16 UserName string Password string Session *smb2.Session NetConnection func(serverName string) (net.Conn, error) SambaDialer func(userName, password string) *smb2.Dialer SambaSession func(conn net.Conn, dialer *smb2.Dialer) (*smb2.Session, error) }
Click to show internal directories.
Click to hide internal directories.