Documentation
¶
Index ¶
- func New(opt *Option) (cloudfs.FS, error)
- type Option
- type SFTP
- func (d *SFTP) Close() error
- func (d *SFTP) Copy(ctx context.Context, src, dst string) error
- func (d *SFTP) Create(ctx context.Context, path string) (cloudfs.FileWriter, error)
- func (d *SFTP) List(ctx context.Context, path string) ([]cloudfs.FileInfo, error)
- func (d *SFTP) MakeDir(ctx context.Context, path string) error
- func (d *SFTP) Move(ctx context.Context, src, dst string) error
- func (d *SFTP) Open(ctx context.Context, path string) (cloudfs.File, error)
- func (d *SFTP) Remove(ctx context.Context, path string) error
- func (d *SFTP) Rename(ctx context.Context, path, newName string) error
- func (d *SFTP) Stat(ctx context.Context, path string) (cloudfs.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Click to show internal directories.
Click to hide internal directories.