download

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Download

func Download(args []string, configPath, version string) error

Download function downloads files from the SDA by using the download's service APIs

func GetDatasets added in v0.1.3

func GetDatasets(baseURL, token, version string) ([]string, error)

func GetURLsFile

func GetURLsFile(urlsFilePath string) (urlsList []string, err error)

Types

type File added in v0.1.3

type File struct {
	FileID                    string `json:"fileId"`
	DisplayFileName           string `json:"displayFileName"`
	FilePath                  string `json:"filePath"`
	DecryptedFileSize         int    `json:"decryptedFileSize"`
	DecryptedFileChecksum     string `json:"decryptedFileChecksum"`
	DecryptedFileChecksumType string `json:"decryptedFileChecksumType"`
}

File struct represents the file metadata

func GetFilesInfo added in v0.1.3

func GetFilesInfo(baseURL, dataset, pubKeyBase64, token, version string) ([]File, error)

GetFilesInfo gets the files of the dataset by using the dataset ID

Jump to

Keyboard shortcuts

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