ftp

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 15 Imported by: 1 module, 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

func DownloadFile

func DownloadFile(ac *client.AlpaconClient, src, dest, username, groupname string, recursive bool) error

func UploadFile

func UploadFile(ac *client.AlpaconClient, src []string, dest, username, groupname string) ([]string, error)

func UploadFolder

func UploadFolder(ac *client.AlpaconClient, src []string, dest, username, groupname string) ([]string, error)

Types

type DownloadRequest

type DownloadRequest struct {
	Path         string `json:"path"`
	Name         string `json:"name"`
	Server       string `json:"server"`
	Username     string `json:"username"`
	Groupname    string `json:"groupname"`
	ResourceType string `json:"resource_type"`
}

type DownloadResponse

type DownloadResponse struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Path        string `json:"path"`
	Size        int    `json:"size"`
	Server      string `json:"server"`
	User        string `json:"user"`
	Username    string `json:"username"`
	Groupname   string `json:"groupname"`
	ExpiresAt   string `json:"expires_at"`
	UploadURL   string `json:"upload_url"`
	DownloadURL string `json:"download_url"`
	Command     string `json:"command"`
}

type UploadRequest

type UploadRequest struct {
	Id             string `json:"id"`
	Name           string `json:"name"`
	Path           string `json:"path"`
	Server         string `json:"server"`
	Username       string `json:"username"`
	Groupname      string `json:"groupname"`
	AllowUnzip     string `json:"allow_unzip"`
	AllowOverwrite string `json:"allow_overwrite"`
}

type UploadResponse

type UploadResponse struct {
	Id        string    `json:"id"`
	Name      string    `json:"name"`
	Path      string    `json:"path"`
	Size      int       `json:"size"`
	Server    string    `json:"server"`
	User      string    `json:"user"`
	Username  string    `json:"username"`
	Groupname string    `json:"groupname"`
	ExpiresAt time.Time `json:"expires_at"`
	UploadUrl string    `json:"upload_url"`
	Command   string    `json:"command"`
}

Jump to

Keyboard shortcuts

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