GO-2026-5939: Claircore: Unauthenticated attackers can submit manifests with URIs pointing to internal services or cloud metadata endpoints in github.com/quay/claircore
type Repo struct {
Type string `xml:"type,attr"`
Checksum Checksum `xml:"checksum"`
OpenChecksum Checksum `xml:"open-checksum"`
Location Location `xml:"location"`
Timestamp int `xml:"timestamp"`
DatabaseVersion int `xml:"database_version"`
Size int `xml:"size"`
OpenSize int `xml:"open-size"`
}
Repo returns a Repo struct per the specified RepoType.
If a mirror url is provided a fully qualified Repo.Location.Href is returned
A ErrRepoNotFound error is returned if the RepoType cannot be located.