Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit928f447

Browse files
author
Faris Huskovic
committed
use consistent naming pattern
1 parent1a2a7ce commit928f447

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 (cClient)GetOrganizationImages(ctx context.Context,orgIDstring) ([]Image,error) {
51+
//OrganizationImages returns all of the images imported for orgID.
52+
func (cClient)OrganizationImages(ctx context.Context,orgIDstring) ([]Image,error) {
5353
varimgs []Image
5454
iferr:=c.requestBody(ctx,http.MethodGet,"/api/orgs/"+orgID+"/images",nil,&imgs);err!=nil {
5555
returnnil,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:=rangeorgs {
163-
imgs,err:=conf.client.GetOrganizationImages(ctx,org.ID)
163+
imgs,err:=conf.client.OrganizationImages(ctx,org.ID)
164164
iferr!=nil {
165165
returnnil,err
166166
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp