packages

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadPackage

func DownloadPackage(ac *client.AlpaconClient, fileName string, dest string, packageType string) error

func GetPackageIDByName

func GetPackageIDByName(ac *client.AlpaconClient, fileName string, packageType string) (string, error)

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"`
}

Jump to

Keyboard shortcuts

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