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

Commit fce26b0

Browse files
committed
feat(sdk): add tag refresh method to coder-sdk
1 parent c25b0e9 commit fce26b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coder-sdk/image.go

+5
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@ func (c Client) OrganizationImages(ctx context.Context, orgID string) ([]Image,
7777
func (c Client) UpdateImage(ctx context.Context, imageID string, req UpdateImageReq) error {
7878
return c.requestBody(ctx, http.MethodPatch, "/api/private/images/"+imageID, req, nil)
7979
}
80+
81+
// UpdateImageTags refreshes the latest digests for all tags of the image.
82+
func (c Client) UpdateImageTags(ctx context.Context, imageID string) error {
83+
return c.requestBody(ctx, http.MethodPost, "/api/private/images/"+imageID+"/tags/update", nil, nil)
84+
}

0 commit comments

Comments
 (0)