ftp

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(ac *client.AlpaconClient, serverName string, path string) (string, error)

func UploadFile

func UploadFile(ac *client.AlpaconClient, file string, serverName string, path string) error

Types

type DownloadRequest

type DownloadRequest struct {
	Path   string `json:"path"`
	Server string `json:"server"`
}

type DownloadResponse

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

Jump to

Keyboard shortcuts

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