-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
91 lines (85 loc) · 2.66 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package instellar
type Cluster struct {
Data struct {
Attributes struct {
ID int `json:"id"`
CurrentState string `json:"current_state"`
Name string `json:"name"`
Slug string `json:"slug"`
Endpoint string `json:"endpoint"`
Provider string `json:"provider"`
Region string `json:"region"`
} `json:"attributes"`
} `json:"data"`
}
type Uplink struct {
Data struct {
Attributes struct {
ID int `json:"id"`
CurrentState string `json:"current_state"`
InstallationID int `json:"installation_id"`
ClusterID int `json:"cluster_id"`
ChannelSlug string `json:"channel_slug"`
KitSlug string `json:"kit_slug"`
Nodes []string `json:"nodes"`
} `json:"attributes"`
} `json:"data"`
}
type Node struct {
Data struct {
Attributes struct {
ID int `json:"id"`
CurrentState string `json:"current_state"`
Slug string `json:"slug"`
PublicIP string `json:"public_ip"`
ClusterID int `json:"cluster_id"`
} `json:"attributes"`
} `json:"data"`
}
type Storage struct {
Data struct {
Attributes struct {
ID int `json:"id"`
CurrentState string `json:"current_state"`
Host string `json:"host"`
Bucket string `json:"bucket"`
Region string `json:"region"`
CredentialAccessKeyID string `json:"credential_access_key_id"`
CredentialSecretAccessKey string `json:"credential_secret_access_key"`
} `json:"attributes"`
} `json:"data"`
}
type Component struct {
Data struct {
Attributes struct {
ID int `json:"id"`
CurrentState string `json:"current_state"`
Slug string `json:"slug"`
Provider string `json:"provider"`
Driver string `json:"driver"`
Version string `json:"version"`
ClusterIDS []int `json:"cluster_ids"`
Channels []string `json:"channels"`
Credential struct {
Username string `json:"username"`
Password string `json:"password"`
Resource string `json:"resource"`
Certificate *string `json:"certificate"`
Host string `json:"host"`
Port int `json:"port"`
Secure bool `json:"secure"`
} `json:"credential"`
} `json:"attributes"`
} `json:"data"`
}
type Balancer struct {
Data struct {
Attributes struct {
ID int `json:"id"`
Name string `json:"name"`
CurrentState string `json:"current_state"`
Address string `json:"address"`
ClusterID int `json:"cluster_id"`
} `json:"attributes"`
} `json:"data"`
}