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

Commit f492f2d

Browse files
authored
feat(sdk): add tag refresh method to coder-sdk (#205)
1 parent c25b0e9 commit f492f2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coder-sdk/image.go

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy