working commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user