Skip to content

Commit

Permalink
Add region datacenter struct
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper committed Nov 9, 2023
1 parent 0506e7f commit 40ba86c
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions container_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,26 @@ func (c *ContainerRegistryDockerCredentials) String() string {

// ContainerRegistryRegion represents the region data
type ContainerRegistryRegion struct {
ID int `json:"id"`
Name string `json:"name"`
URN string `json:"urn"`
BaseURL string `json:"base_url"`
Public bool `json:"public"`
DateCreated string `json:"added_at"`
DateModified string `json:"updated_at"`
ID int `json:"id"`
Name string `json:"name"`
URN string `json:"urn"`
BaseURL string `json:"base_url"`
Public bool `json:"public"`
DateCreated string `json:"added_at"`
DateModified string `json:"updated_at"`
DataCenter ContainerRegistryRegionDataCenter `json:"data_center"`
}

// ContainerRegistryRegionDataCenter is the datacenter info for a given region
type ContainerRegistryRegionDataCenter struct {
ID int `json:"id"`
Name string `json:"name"`
SiteCode string `json:"site_code"`
Region string `json:"region"`
Country string `json:"country"`
Continent string `json:"continent"`
Description string `json:"description"`
Airport string `json:"airport"`
}

type containerRegistryRegions struct {
Expand Down

0 comments on commit 40ba86c

Please sign in to comment.