Documentation
¶
Index ¶
- Variables
- type Client
- type FtpClient
- func (c *FtpClient) MakeDir(ctx context.Context, remotePath string) error
- func (c *FtpClient) Remove(ctx context.Context, remotePath string) error
- func (c *FtpClient) RemoveDir(ctx context.Context, remotePath string) error
- func (c *FtpClient) RemoveFile(ctx context.Context, remotePath string) error
- func (c *FtpClient) UploadFile(ctx context.Context, remotePath string, localPath string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedScheme = errors.New("unsupported scheme") ErrClientIsNil = errors.New("client is nil") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
MakeDir(ctx context.Context, remotePath string) error
RemoveDir(ctx context.Context, remotePath string) error
UploadFile(ctx context.Context, remotePath string, localPath string) error
RemoveFile(ctx context.Context, remotePath string) error
Remove(ctx context.Context, remotePath string) error
}
type FtpClient ¶
type FtpClient struct {
// contains filtered or unexported fields
}
func NewFtpClient ¶
func (*FtpClient) RemoveFile ¶
Click to show internal directories.
Click to hide internal directories.