Documentation
¶
Index ¶
- func DownloadPackage(ac *client.AlpaconClient, fileName string, dest string, packageType string) error
- func GetPackageIDByName(ac *client.AlpaconClient, fileName string, packageType string) (string, error)
- func UploadPackage(ac *client.AlpaconClient, file string, packageType string) error
- type DownloadURL
- type PythonPackage
- type PythonPackageDetail
- type SystemPackage
- type SystemPackageDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadPackage ¶
func GetPackageIDByName ¶
func UploadPackage ¶
func UploadPackage(ac *client.AlpaconClient, file string, packageType string) error
Types ¶
type DownloadURL ¶
type DownloadURL struct {
DownloadURL string `json:"download_url"`
}
type PythonPackage ¶
type PythonPackage struct {
Name string `json:"name"`
Version string `json:"version"`
PythonTarget string `json:"python_target"`
ABI string `json:"abi"`
Platform string `json:"platform"`
Owner string `json:"owner"`
}
func GetPythonPackageEntry ¶
func GetPythonPackageEntry(ac *client.AlpaconClient) ([]PythonPackage, error)
type PythonPackageDetail ¶
type PythonPackageDetail struct {
ID string `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Target string `json:"target"`
ABI string `json:"abi"`
Platform string `json:"platform"`
Filesize int64 `json:"filesize"`
Owner string `json:"owner"`
OwnerName string `json:"owner_name"`
AddedAt string `json:"added_at"`
DownloadURL string `json:"download_url"`
}
type SystemPackage ¶
type SystemPackage struct {
Name string `json:"name"`
Version string `json:"version"`
Arch string `json:"arch"`
Platform string `json:"platform"`
Owner string `json:"owner"`
}
func GetSystemPackageEntry ¶
func GetSystemPackageEntry(ac *client.AlpaconClient) ([]SystemPackage, error)
type SystemPackageDetail ¶
type SystemPackageDetail struct {
ID string `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Platform string `json:"platform"`
Arch string `json:"arch"`
Filesize int64 `json:"filesize"`
Owner string `json:"owner"`
OwnerName string `json:"owner_name"`
AddedAt string `json:"added_at"`
DownloadURL string `json:"download_url"`
}
Click to show internal directories.
Click to hide internal directories.