diff --git a/cmd/ry/internal/model/billing.go b/cmd/ry/internal/model/billing.go new file mode 100644 index 0000000..98644c3 --- /dev/null +++ b/cmd/ry/internal/model/billing.go @@ -0,0 +1,11 @@ +package model + +import "time" + +type Order struct { + ID string `json:"id" table:"ID"` + Product string `json:"product" table:"PRODUCT"` + Amount float64 `json:"amount" table:"AMOUNT"` + Status string `json:"status" table:"STATUS"` + Created time.Time `json:"created" table:"CREATED"` +} diff --git a/cmd/ry/internal/model/domain.go b/cmd/ry/internal/model/domain.go new file mode 100644 index 0000000..8f551db --- /dev/null +++ b/cmd/ry/internal/model/domain.go @@ -0,0 +1,14 @@ +package model + +type Domain struct { + ID string `json:"id" table:"ID"` + Name string `json:"name" table:"DOMAIN"` +} + +type DNSRecord struct { + ID string `json:"id" table:"ID"` + Type string `json:"type" table:"TYPE"` + Name string `json:"name" table:"NAME"` + Value string `json:"value" table:"VALUE"` + TTL int `json:"ttl" table:"TTL"` +} diff --git a/cmd/ry/internal/model/server.go b/cmd/ry/internal/model/server.go new file mode 100644 index 0000000..36f22c9 --- /dev/null +++ b/cmd/ry/internal/model/server.go @@ -0,0 +1,16 @@ +package model + +import "time" + +type Server struct { + ID string `json:"id" table:"ID"` + Name string `json:"name" table:"NAME"` + Status string `json:"status" table:"STATUS"` + IP string `json:"ip" table:"IP"` + CPU int `json:"cpu" table:"CPU"` + Memory int `json:"memory" table:"MEM"` + Disk int `json:"disk" table:"DISK"` + OS string `json:"os" table:"OS"` + Region string `json:"region" table:"REGION"` + ExpireAt time.Time `json:"expires" table:"EXPIRES"` +} diff --git a/cmd/ry/internal/model/storage.go b/cmd/ry/internal/model/storage.go new file mode 100644 index 0000000..a4f6022 --- /dev/null +++ b/cmd/ry/internal/model/storage.go @@ -0,0 +1,12 @@ +package model + +type StorageInstance struct { + ID string `json:"id" table:"ID"` + Name string `json:"name" table:"NAME"` + Status string `json:"status" table:"STATUS"` +} + +type Bucket struct { + ID string `json:"id" table:"ID"` + Name string `json:"name" table:"NAME"` +}