Add limit when calling v1/_catalog

This commit is contained in:
하광일/TC_Core Engineering 2020-05-14 16:52:13 +09:00
parent f9899cb785
commit ddaa1acdb9

View File

@ -178,7 +178,7 @@ func (c *Client) Repositories(useCache bool) map[string][]string {
linkRegexp := regexp.MustCompile("^<(.*?)>;.*$")
scope := "registry:catalog:*"
uri := "/v2/_catalog"
uri := "/v2/_catalog?n=1000"
c.repos = map[string][]string{}
for {
data, resp := c.callRegistry(uri, scope, "manifest.v2")