task

package
v0.0.0-...-5bf7aa6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: AGPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIndex

func BuildIndex(db *gorm.DB, keyring *crypto.KeyRing, config *conf.Config)

Types

type IndexResponse

type IndexResponse struct {
	Packages []Package `json:"packages"`
}

type Maintainer

type Maintainer struct {
	Name        string `json:"name"`
	ContactMail string `json:"contact_mail"`
	Fingerprint string `json:"fingerprint"`
}

type Package

type Package struct {
	Name            string           `json:"name"`
	FlagOrphaned    bool             `json:"flag_orphaned"`
	SourceURL       string           `json:"source_url"`
	Maintainer      []Maintainer     `json:"maintainer"`
	PackageVersions []PackageVersion `json:"package_versions"`
}

type PackageVersion

type PackageVersion struct {
	License             string `json:"license"`
	Description         string `json:"description"`
	Bytes               uint   `json:"bytes"`
	VersionMajor        uint   `json:"version_major"`
	VersionMinor        uint   `json:"version_minor"`
	VersionPatch        uint   `json:"version_patch"`
	PNPZoneVersionMajor uint   `json:"pnp_zone_version_major"`
	PNPZoneVersionMinor uint   `json:"pnp_zone_version_minor"`
	PNPZoneVersionPatch uint   `json:"pnp_zone_version_patch"`
	FlagYanked          bool   `json:"flag_yanked"`
	FlagLatest          bool   `json:"flag_latest"`
}

Jump to

Keyboard shortcuts

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