Skip to content

Commit

Permalink
feat: add error handling structure to instance data model (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
publi0 authored Feb 13, 2025
1 parent 23d6287 commit 19015bd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion compute/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,18 @@ type (
Status string `json:"status"`
State string `json:"state"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
SSHKeyName string `json:"ssh_key_name,omitempty"`
AvailabilityZone string `json:"availability_zone,omitempty"`
Network Network `json:"network"`
UserData string `json:"user_data,omitempty"`
Labels []string `json:"labels"`
Error Error `json:"error,omitempty"`
}

Error struct {
Message string `json:"message"`
Slug string `json:"slug"`
}

CreateRequest struct {
Expand Down

0 comments on commit 19015bd

Please sign in to comment.