packages

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadPackage

func UploadPackage(ac *client.AlpaconClient, file string, packageType string) error

Types

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 PythonPackageListResponse

type PythonPackageListResponse struct {
	Count    int                   `json:"count"`
	Current  int                   `json:"current"`
	Next     int                   `json:"next"`
	Previous string                `json:"previous"`
	Last     int                   `json:"last"`
	Results  []PythonPackageDetail `json:"results"`
}

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

type SystemPackageListResponse

type SystemPackageListResponse struct {
	Count    int                   `json:"count"`
	Current  int                   `json:"current"`
	Next     int                   `json:"next"`
	Previous string                `json:"previous"`
	Last     int                   `json:"last"`
	Results  []SystemPackageDetail `json:"results"`
}

Jump to

Keyboard shortcuts

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