sftp

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 12 Imported by: 0

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