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

Commit df0b4ae

Browse files
authored
Add default tag and registry to image response (#183)
1 parent 9d236af commit df0b4ae

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

coder-sdk/image.go

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,24 @@ package coder
33
import (
44
"context"
55
"net/http"
6+
"time"
67
)
78

89
// Image describes a Coder Image.
910
type Image struct {
10-
ID string `json:"id"`
11-
OrganizationID string `json:"organization_id"`
12-
Repository string `json:"repository"`
13-
Description string `json:"description"`
14-
URL string `json:"url"` // User-supplied URL for image.
15-
DefaultCPUCores float32 `json:"default_cpu_cores"`
16-
DefaultMemoryGB float32 `json:"default_memory_gb"`
17-
DefaultDiskGB int `json:"default_disk_gb"`
18-
Deprecated bool `json:"deprecated"`
11+
ID string `json:"id"`
12+
OrganizationID string `json:"organization_id"`
13+
Repository string `json:"repository"`
14+
Description string `json:"description"`
15+
URL string `json:"url"` // User-supplied URL for image.
16+
Registry *Registry `json:"registry"`
17+
DefaultTag *ImageTag `json:"default_tag"`
18+
DefaultCPUCores float32 `json:"default_cpu_cores"`
19+
DefaultMemoryGB float32 `json:"default_memory_gb"`
20+
DefaultDiskGB int `json:"default_disk_gb"`
21+
Deprecated bool `json:"deprecated"`
22+
CreatedAt time.Time `json:"created_at"`
23+
UpdatedAt time.Time `json:"updated_at"`
1924
}
2025

2126
// NewRegistryRequest describes a docker registry used in importing an image.

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