xplshn
·
2025-08-13
repoIndexFile.go
Go
1package main
2
3type snapshot struct {
4 Commit string `json:"commit"`
5 Version string `json:"version,omitempty"`
6}
7
8type binaryEntry struct {
9 Name string `json:"pkg" `
10 PrettyName string `json:"pkg_name" `
11 PkgID string `json:"pkg_id" `
12 Description string `json:"description,omitempty" `
13 Version string `json:"version,omitempty" `
14 DownloadURL string `json:"download_url,omitempty"`
15 Icon string `json:"icon,omitempty" `
16 Size string `json:"size,omitempty" `
17 Bsum string `json:"bsum,omitempty" `
18 Shasum string `json:"shasum,omitempty" `
19 BuildDate string `json:"build_date,omitempty" `
20 BuildScript string `json:"build_script,omitempty"`
21 BuildLog string `json:"build_log,omitempty" `
22 Categories string `json:"categories,omitempty" `
23 ExtraBins string `json:"provides,omitempty" `
24 Maintainers string `json:"maintainers,omitempty" `
25 Screenshots []string `json:"screenshots,omitempty" `
26 License []string `json:"license,omitempty" `
27 Notes []string `json:"notes,omitempty" `
28 SrcURLs []string `json:"src_urls,omitempty" `
29 WebURLs []string `json:"web_urls,omitempty" `
30 Snapshots []snapshot `json:"snapshots,omitempty" `
31 Rank uint16 `json:"rank,omitempty" `
32 WebManifest string `json:"web_manifest,omitempty"`
33 // specific to `dbin`'s internal needs:
34 binaryPath string `json:"-"`
35 Repository repository
36}