Documentation
¶
Index ¶
- Variables
- type AuthConfig
- type Client
- func (c *Client) MakeDir(ctx context.Context, remotePath string) error
- func (c *Client) Remove(ctx context.Context, remotePath string) error
- func (c *Client) RemoveDir(ctx context.Context, remotePath string) error
- func (c *Client) RemoveFile(ctx context.Context, remotePath string) error
- func (c *Client) UploadFile(ctx context.Context, remotePath string, localPath string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEncryptedKeyNoPassphrase = errors.New("SSH key is encrypted but no key_pass provided")
)
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
// contains filtered or unexported fields
}
func ParseAuthFromURL ¶
func ParseAuthFromURL(u *url.URL) AuthConfig
func (AuthConfig) BuildAuthMethods ¶
func (a AuthConfig) BuildAuthMethods() ([]ssh.AuthMethod, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RemoveFile ¶
Click to show internal directories.
Click to hide internal directories.