up
This commit is contained in:
@@ -70,18 +70,25 @@ func (c *HostingerClient) get(path string, dest interface{}) error {
|
||||
|
||||
// ─── Tipos de respuesta ──────────────────────────────────────────────────────
|
||||
|
||||
// HostingerIPAddress representa una dirección IP de un VPS (IPv4 o IPv6).
|
||||
type HostingerIPAddress struct {
|
||||
ID int `json:"id"`
|
||||
Address string `json:"address"`
|
||||
PTR string `json:"ptr"`
|
||||
}
|
||||
|
||||
// HostingerVPS representa una máquina virtual VPS.
|
||||
type HostingerVPS struct {
|
||||
ID int `json:"id"`
|
||||
Hostname string `json:"hostname"`
|
||||
State string `json:"state"`
|
||||
Plan string `json:"plan"`
|
||||
DataCenter string `json:"data_center"`
|
||||
CPU int `json:"cpus"`
|
||||
RAMBytes int64 `json:"ram"`
|
||||
DiskBytes int64 `json:"disk"`
|
||||
IPV4 []string `json:"ipv4"`
|
||||
IPV6 []string `json:"ipv6"`
|
||||
ID int `json:"id"`
|
||||
Hostname string `json:"hostname"`
|
||||
State string `json:"state"`
|
||||
Plan string `json:"plan"`
|
||||
DataCenter string `json:"data_center"`
|
||||
CPU int `json:"cpus"`
|
||||
RAMBytes int64 `json:"memory"`
|
||||
DiskBytes int64 `json:"disk"`
|
||||
IPV4 []HostingerIPAddress `json:"ipv4"`
|
||||
IPV6 []HostingerIPAddress `json:"ipv6"`
|
||||
}
|
||||
|
||||
// HostingerDomain representa un dominio en el portafolio.
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
x-text="v.state"></span>
|
||||
</div>
|
||||
<div class="space-y-1 text-xs text-gray-500">
|
||||
<div class="flex justify-between"><span>IPv4</span><span class="font-mono" x-text="(v.ipv4 && v.ipv4.length) ? v.ipv4.join(', ') : '—'"></span></div>
|
||||
<div class="flex justify-between"><span>IPv4</span><span class="font-mono" x-text="(v.ipv4 && v.ipv4.length) ? v.ipv4.map(ip => ip.address).join(', ') : '—'"></span></div>
|
||||
<div class="flex justify-between"><span>Plan</span><span x-text="v.plan || '—'"></span></div>
|
||||
<div class="flex justify-between"><span>Datacenter</span><span x-text="v.data_center || '—'"></span></div>
|
||||
<div class="flex justify-between"><span>CPU</span><span x-text="(v.cpus || v.cpu || '—') + ' vCPU'"></span></div>
|
||||
|
||||
Reference in New Issue
Block a user