ftp

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 10 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(config *Config) (*Client, error)

func (*Client) ChangeDir

func (c *Client) ChangeDir(ctx context.Context, path string) error

func (*Client) CurrentDir

func (c *Client) CurrentDir(ctx context.Context) (string, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, path string) error

func (*Client) Mkdir

func (c *Client) Mkdir(ctx context.Context, path string) error

func (*Client) MkdirAll

func (c *Client) MkdirAll(ctx context.Context, path string) error

func (*Client) Quit

func (c *Client) Quit(ctx context.Context) error

func (*Client) RawClient

func (c *Client) RawClient() *ftp.ServerConn

func (*Client) Retrieve

func (c *Client) Retrieve(ctx context.Context, path string) (*File, error)

func (*Client) Store

func (c *Client) Store(ctx context.Context, path string, reader io.Reader, offset uint64) error

func (*Client) StoreBytes

func (c *Client) StoreBytes(ctx context.Context, path string, data []byte) error

func (*Client) StoreString

func (c *Client) StoreString(ctx context.Context, path string, data string) error

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type File

type File = ftp.Response

Jump to

Keyboard shortcuts

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