data

package
v0.0.0-...-b78bb00 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertArrays

func ConvertArrays(packages []Package) error

func ConvertValues

func ConvertValues(packages []Package) error

Types

type Arch

type Arch string
const (
	Any    Arch = "any"
	X86_64 Arch = "x86_64"
)

type Attribute

type Attribute struct {
	Field func(pkg Package) []string
	File  string
	Name  string
}

type Package

type Package struct {
	Pkgname        string   `json:"pkgname"`
	Pkgbase        string   `json:"pkgbase"`
	Repo           Repo     `json:"repo"`
	Arch           Arch     `json:"arch"`
	Pkgver         string   `json:"pkgver"`
	Pkgdesc        string   `json:"pkgdesc"`
	URL            string   `json:"url"`
	Filename       string   `json:"filename"`
	CompressedSize int64    `json:"compressed_size"`
	InstalledSize  int64    `json:"installed_size"`
	BuildDate      string   `json:"build_date"`
	Packager       Person   `json:"packager"`
	Groups         []string `json:"groups"`
	Licenses       []string `json:"licenses"`
	Conflicts      []string `json:"conflicts"`
	Provides       []string `json:"provides"`
	Replaces       []string `json:"replaces"`
	Depends        []string `json:"depends"`
	Optdepends     []string `json:"optdepends"`
	Makedepends    []string `json:"makedepends"`
	Checkdepends   []string `json:"checkdepends"`
}

func GetData

func GetData() ([]Package, error)

type Person

type Person struct {
	Name  string
	Email string
}

type Repo

type Repo string
const (
	Core            Repo = "core"
	Extra           Repo = "extra"
	Multilib        Repo = "multilib"
	CoreTesting     Repo = "core-testing"
	ExtraTesting    Repo = "extra-testing"
	MultilibTesting Repo = "multilib-testing"
)

Jump to

Keyboard shortcuts

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