Documentation ¶
Index ¶
- func New(ctx context.Context, u *url.URL) (backends.Backend, error)
- type SFTP
- func (fs *SFTP) Close() error
- func (fs *SFTP) Delete(ctx context.Context, path string) error
- func (fs *SFTP) Get(ctx context.Context, path string, offset, length int64) (rv io.ReadCloser, err error)
- func (fs *SFTP) List(ctx context.Context, prefix string, ...) error
- func (fs *SFTP) Put(ctx context.Context, path string, data io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SFTP ¶
type SFTP struct {
// contains filtered or unexported fields
}
SFTP implements the Backend interface using SFTP
func (*SFTP) Get ¶
func (fs *SFTP) Get(ctx context.Context, path string, offset, length int64) (rv io.ReadCloser, err error)
Get implements the Backend interface
Click to show internal directories.
Click to hide internal directories.