Something went wrong. Try again.
Maps Linux distribution source packages to their upstream repositories, and through them to each other
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930// Package model defines the types shared by the per-distribution resolvers and the// association table.package model
// Distro identifies a downstream distribution.type Distro string
const ( Debian Distro = "debian" OpenSUSE Distro = "opensuse" Arch Distro = "arch" Alpine Distro = "alpine")
// AllDistros lists the distros this tool understands, in display order.var AllDistros = []Distro{Debian, OpenSUSE, Arch, Alpine}
// Evidence records one observation that supports an upstream mapping.type Evidence struct { // Source names the field that produced the value, e.g. "debian/upstream/metadata:Repository", // "SRCINFO:source:git", "spec:Source0", "_service:obs_scm:url". Source string `json:"source"` // Value is the raw value observed. Value string `json:"value"` // Key is the repourl key derived from Value, if it resolved to a repository. Key string `json:"key,omitempty"` // Weight is the resolver's prior trust in this source, in [0,1]. Weight float64 `json:"weight"`}