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

Add default tag and registry to image response #183

Merged
merged 1 commit into from
Nov 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions coder-sdk/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ package coder
import (
"context"
"net/http"
"time"
)

// Image describes a Coder Image.
type Image struct {
ID string `json:"id"`
OrganizationID string `json:"organization_id"`
Repository string `json:"repository"`
Description string `json:"description"`
URL string `json:"url"` // User-supplied URL for image.
DefaultCPUCores float32 `json:"default_cpu_cores"`
DefaultMemoryGB float32 `json:"default_memory_gb"`
DefaultDiskGB int `json:"default_disk_gb"`
Deprecated bool `json:"deprecated"`
ID string `json:"id"`
OrganizationID string `json:"organization_id"`
Repository string `json:"repository"`
Description string `json:"description"`
URL string `json:"url"` // User-supplied URL for image.
Registry *Registry `json:"registry"`
DefaultTag *ImageTag `json:"default_tag"`
DefaultCPUCores float32 `json:"default_cpu_cores"`
DefaultMemoryGB float32 `json:"default_memory_gb"`
DefaultDiskGB int `json:"default_disk_gb"`
Deprecated bool `json:"deprecated"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}

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