working commit

This commit is contained in:
2026-03-09 13:08:47 +02:00
parent 4801aa26cf
commit d0a5fab362
4 changed files with 228 additions and 0 deletions
+15
View File
@@ -95,6 +95,21 @@ func (repo *Referer) Put(loc, digest string) (string, error) {
return out, err
}
func (repo *Referer) Tags() string {
curl := repo.urlobj.JoinPath("/v2", repo.base, "/tags/list")
return curl.String()
}
func (repo *Referer) Referers(digest string) string {
curl := repo.urlobj.JoinPath("/v2", repo.base, "/referrers/", digest)
return curl.String()
}
func (repo *Referer) Catalog() string {
curl := repo.urlobj.JoinPath("/v2/_catalog")
return curl.String()
}
func (repo *Referer) Userinfo() (string, string) {
return repo.user, repo.pass
}