ftp

package
v0.10.22 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 5 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) Disconnect

func (c *Client) Disconnect()

func (*Client) GetConfig

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

func (*Client) ReadFiles

func (c *Client) ReadFiles() ([]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