-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from niconicodex/master
[Hcloud-MiddleWare] Scheduler Json model
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type ServerNode struct { | ||
UUID string `json:"uuid"` | ||
ServerUUID string `json:"server_uuid"` | ||
NodeUUID string `json:"node_uuid"` | ||
CreatedAt time.Time `json:"created_at"` | ||
} | ||
|
||
type ServerNodes struct { | ||
Server []Server `json:"server_node"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type Subnet struct { | ||
UUID string `json:"uuid"` | ||
NetworkIP string `json:"network_ip"` | ||
Netmask string `json:"netmask"` | ||
Gateway string `json:"gateway"` | ||
NextServer string `json:"next_server"` | ||
NameServer string `json:"name_server"` | ||
DomainName string `json:"domain_name"` | ||
ServerUUID string `json:"server_uuid"` | ||
LeaderNodeUUID string `json:"leader_node_uuid"` | ||
OS string `json:"os"` | ||
SubnetName string `json:"subnet_name"` | ||
CreatedAt time.Time `json:"created_at"` | ||
} | ||
|
||
type Subnets struct { | ||
Subnets []Subnet `json:"subnet"` | ||
} | ||
|
||
type SubnetNum struct { | ||
Number int `json:"number"` | ||
} |