()
| 43 | } |
| 44 | |
| 45 | func NewHubClient() *HubClientImpl { |
| 46 | return &HubClientImpl{ |
| 47 | client: http.Client{ |
| 48 | Timeout: 30 * time.Second, |
| 49 | }, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func (c *HubClientImpl) GetTags(ctx context.Context, repository, image string) ([]TagResult, error) { |
| 54 | return c.GetTagsFromURL(ctx, fmt.Sprintf(getTagsUrl, repository, image)) |