@ -176,10 +176,10 @@ type GUID string
func ( r * GUID ) UnmarshalJSON ( b [ ] byte ) error {
func ( r * GUID ) UnmarshalJSON ( b [ ] byte ) error {
if b [ 0 ] == '"' {
if b [ 0 ] == '"' {
* r = GUID ( string ( b [ 1 : len ( b ) - 1 ] ) )
* r = GUID ( string ( b [ 1 : len ( b ) - 1 ] ) )
return nil
return nil
}
}
* r = GUID ( string ( b ) )
* r = GUID ( string ( b ) )
return nil
return nil
@ -190,74 +190,167 @@ type ListHistory []History
// List stacks
// List stacks
type ListStacks struct {
type ListStacks struct {
Data [ ] struct {
// Data
// CKey
Data [ ] ItemListStacks ` json:"data" `
CKey string ` json:"_ckey" `
// Meta
// Entry count
Meta [ ] interface { } ` json:"_meta" `
EntryCount uint64 ` json:"entryCount" `
}
// API URL
// Detailed information about image
APIURL string ` json:"apiUrl" `
type ItemListStacks struct {
// CKey
CKey string ` json:"_ckey" `
// API key
// Meta
APIKey string ` json:"apikey" `
Meta [ ] interface { } ` json:"_meta" `
// API URL
APIURL string ` json:"apiUrl" `
// API key
APIKey string ` json:"apikey" `
// App ID
AppID string ` json:"appId" `
// App ID
// CPU allocation ratio
AppID string ` json:"appId" `
CPUAllocationRatio float64 ` json:"cpu_allocation_ratio "`
// CPU allocation ratio
// Description
CPUAllocationRatio float64 ` json:"cpu_allocation_ratio" `
Description string ` json:"desc "`
// Description
// Descr
Description string ` json:"desc" `
Descr string ` json:"descr" `
// Drivers
Drivers [ ] string ` json:"drivers" `
// Descr
// Eco
Descr string ` json:"descr" `
Eco interface { } ` json:"eco "`
// Drivers
// Error
Drivers [ ] string ` json:"drivers "`
Error uint64 ` json:"error "`
// Eco
// Grid ID
Eco interface { } ` json:"eco "`
GID uint64 ` json:"gid "`
// Error
// GID
Error uint64 ` json:"error "`
GUID uint64 ` json:"guid "`
// Grid ID
// ID
G ID uint64 ` json:" g id"`
ID uint64 ` json:" id"`
// GID
// List image IDs
GUID uint64 ` json:"guid "`
Images [ ] uint64 ` json:"images "`
// ID
// Login
ID uint64 ` json:"id "`
Login string ` json:"login "`
// List image IDs
// Mem allocation ratio
Images [ ] uint64 ` json:"images "`
MemAllocationRatio float64 ` json:"mem_allocation_ratio "`
// Login
// Name
Login string ` json:"login "`
Name string ` json:"name "`
// Mem allocation ratio
// Packegas
// Required: false
Packages Packages ` json:"packages" `
MemAllocationRatio float64 ` json:"mem_allocation_ratio" `
// Name
// Password
Name string ` json:"name "`
Password string ` json:"passwd "`
// Password
// Reference ID
Password string ` json:"passw d"`
ReferenceID string ` json:"referenceI d"`
// Reference ID
// Status
ReferenceID string ` json:"referenceId "`
Status string ` json:"status "`
// Status
// Type
Status string ` json:"status" `
Type string ` json:"type" `
}
// Type
// Package
Type string ` json:"type" `
type Packages struct {
} ` json:"data" `
// LibvirtBin
LibvirtBin LibvirtBin ` json:"libvirt-bin" `
EntryCount uint64 ` json:"entryCount" `
// LibvirtDaemon
LibvirtDaemon LibvirtDaemon ` json:"libvirt-daemon" `
// Lvm2Lockd
Lvm2Lockd Lvm2Lockd ` json:"lvm2-lockd" `
// OpenvswitchCommon
OpenvswitchCommon OpenvswitchCommon ` json:"openvswitch-common" `
// OpenvswitchSwitch
OpenvswitchSwitch OpenvswitchSwitch ` json:"openvswitch-switch" `
// QemuSystemX86
QemuSystemX86 QemuSystemX86 ` json:"qemu-system-x86" `
// Sanlock
Sanlock Sanlock ` json:"sanlock" `
}
// LibvirtBin
type LibvirtBin struct {
// InstalledSize
InstalledSize string ` json:"installed_size" `
// Version
Ver string ` json:"ver" `
}
type LibvirtDaemon struct {
// InstalledSize
InstalledSize string ` json:"installed_size" `
// Version
Ver string ` json:"ver" `
}
// Lvm2Lockd
type Lvm2Lockd struct {
// InstalledSize
InstalledSize string ` json:"installed_size" `
// Version
Ver string ` json:"ver" `
}
// OpenvswitchCommon
type OpenvswitchCommon struct {
// InstalledSize
InstalledSize string ` json:"installed_size" `
// Version
Ver string ` json:"ver" `
}
// OpenvswitchSwitch
type OpenvswitchSwitch struct {
// InstalledSize
InstalledSize string ` json:"installed_size" `
// Version
Ver string ` json:"ver" `
}
// QemuSystemX86
type QemuSystemX86 struct {
// InstalledSize
InstalledSize string ` json:"installed_size" `
// Version
Ver string ` json:"ver" `
}
// Sanlock
type Sanlock struct {
// InstalledSize
InstalledSize string ` json:"installed_size" `
// Version
Ver string ` json:"ver" `
}
}