Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Add method to refresh image tags SHAs #198

Merged
merged 2 commits into from
Dec 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
whoopsie copy pasta
Co-authored-by: Charles Moog <moogcharlie@gmail.com>
  • Loading branch information
jmcampanini and cmoog authored Dec 3, 2020
commit 9130fce27f5dc6e0af81648b7a19033cdba3ead1
4 changes: 2 additions & 2 deletions coder-sdk/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ func (c Client) UpdateImage(ctx context.Context, imageID string, req UpdateImage
}

// UpdateImageTags refreshes the latest digests for all tags of the image.
func (c Client) UpdateImageTags(ctx context.Context, imageID string, req UpdateImageReq) error {
return c.requestBody(ctx, http.MethodPost, "api/images/"+imageID+"/tags/update", req, nil)
func (c Client) UpdateImageTags(ctx context.Context, imageID string) error {
return c.requestBody(ctx, http.MethodPost, "api/images/"+imageID+"/tags/update", nil, nil)
}