ftp

package
v0.10.56 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 6 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 {
	Config *Config
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *Config) *Client

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) Delete added in v0.10.47

func (c *Client) Delete(path string) error

func (*Client) Disconnect

func (c *Client) Disconnect()

func (*Client) GetConfig

func (c *Client) GetConfig() map[string]interface{}

func (*Client) ReadFiles

func (c *Client) ReadFiles(dirname string) ([]string, error)

func (*Client) Retrieve

func (c *Client) Retrieve(path string, dst io.Writer) error

type Config

type Config struct {
	URL      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) GetConfig

func (b *Config) GetConfig() map[string]interface{}

func (*Config) Load

func (b *Config) Load(file string) error

Jump to

Keyboard shortcuts

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