Documentation ¶
Index ¶
- Constants
- type SftpClient
- func (c *SftpClient) Connect() error
- func (c *SftpClient) Get(sPathRem string, sPathLoc string) error
- func (c *SftpClient) GetKey(sKeyPath string) (key ssh.Signer, err error)
- func (c *SftpClient) Put(sPathLoc string, sPathRem string) error
- func (c *SftpClient) SetCredentials(hostname string, port int64, username string, keyPath string, password string)
Constants ¶
View Source
const (
DefaultPort = int64(22)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SftpClient ¶
func (*SftpClient) Connect ¶
func (c *SftpClient) Connect() error
func (*SftpClient) GetKey ¶
func (c *SftpClient) GetKey(sKeyPath string) (key ssh.Signer, err error)
func (*SftpClient) SetCredentials ¶
Click to show internal directories.
Click to hide internal directories.