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

Commit 928f447

Browse files
author
Faris Huskovic
committed
use consistent naming pattern
1 parent 1a2a7ce commit 928f447

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coder-sdk/image.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func (c Client) ImportImage(ctx context.Context, orgID string, req ImportImageRe
4848
return &img, nil
4949
}
5050

51-
// GetOrganizationImages returns all of the images imported for orgID.
52-
func (c Client) GetOrganizationImages(ctx context.Context, orgID string) ([]Image, error) {
51+
// OrganizationImages returns all of the images imported for orgID.
52+
func (c Client) OrganizationImages(ctx context.Context, orgID string) ([]Image, error) {
5353
var imgs []Image
5454
if err := c.requestBody(ctx, http.MethodGet, "/api/orgs/"+orgID+"/images", nil, &imgs); err != nil {
5555
return nil, err

internal/cmd/ceapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func getImgs(ctx context.Context, conf getImgsConf) ([]coder.Image, error) {
160160
orgs = lookupUserOrgs(u, orgs)
161161

162162
for _, org := range orgs {
163-
imgs, err := conf.client.GetOrganizationImages(ctx, org.ID)
163+
imgs, err := conf.client.OrganizationImages(ctx, org.ID)
164164
if err != nil {
165165
return nil, err
166166
}

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