Skip to content

Commit

Permalink
fix int to string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
alv91 committed Aug 10, 2021
1 parent c7a310a commit d9757fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dockerhub/dockerhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ func (client *client) DeleteImages(organization string, repository string, diges
func (client *client) GetImages(organization string, repository string, page int, timeBefore time.Time, pageSize int) (imageList *ImageList) {
pageString := strconv.Itoa(page)
timeFrom := url.QueryEscape(timeBefore.Format(time.RFC3339))
pageSizeStr := strconv.Itoa(pageSize)

req, err := http.NewRequest("GET", "https://hub.docker.com/v2/namespaces/"+organization+"/repositories/"+repository+"/images?page="+pageString+"&page_size="+string(pageSize)+"&ordering=last_activity&status=inactive&active_from="+timeFrom, nil)
req, err := http.NewRequest("GET", "https://hub.docker.com/v2/namespaces/"+organization+"/repositories/"+repository+"/images?page="+pageString+"&page_size="+pageSizeStr+"&ordering=last_activity&status=inactive&active_from="+timeFrom, nil)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit d9757fc

Please sign in to comment.