sftp

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, connString string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) SFTPClient

func (c *Client) SFTPClient() *sftp.Client

type ClientCache

type ClientCache struct {
	// contains filtered or unexported fields
}

func NewClientCache

func NewClientCache() *ClientCache

func (*ClientCache) Close

func (cache *ClientCache) Close() error

func (*ClientCache) Get

func (cache *ClientCache) Get(ctx context.Context, u *url.URL) (*Client, error)

type SFTPBackend

type SFTPBackend struct {
	// contains filtered or unexported fields
}

func NewSFTPBackend

func NewSFTPBackend(ctx context.Context, conf SFTPBackendConfig) *SFTPBackend

func (*SFTPBackend) Close

func (be *SFTPBackend) Close() error

func (*SFTPBackend) Delete

func (be *SFTPBackend) Delete(ctx context.Context, u *url.URL) error

func (*SFTPBackend) ListPrefix

func (be *SFTPBackend) ListPrefix(ctx context.Context, u *url.URL, optFunc ...types.ListOption) ([]*types.Object, error)

func (*SFTPBackend) ReadMetadata

func (be *SFTPBackend) ReadMetadata(ctx context.Context, u *url.URL) (*types.ObjectMetadata, error)

func (*SFTPBackend) Reader

func (be *SFTPBackend) Reader(ctx context.Context, u *url.URL) (types.Reader, error)

func (*SFTPBackend) ReaderAt

func (be *SFTPBackend) ReaderAt(ctx context.Context, u *url.URL) (types.ReaderAt, error)

func (*SFTPBackend) Writer

func (be *SFTPBackend) Writer(ctx context.Context, u *url.URL) (types.Writer, error)

type SFTPBackendConfig

type SFTPBackendConfig struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL