@ -176,7 +176,7 @@ 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
}
}
@ -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 "`
// App ID
// API URL
AppID string ` json:"appId "`
APIURL string ` json:"apiUrl "`
// CPU allocation ratio
// API key
CPUAllocationRatio float64 ` json:"cpu_allocation_ratio "`
APIKey string ` json:"apikey "`
// Description
// App ID
Description string ` json:" desc "`
AppI D string ` json:" appI d"`
// Descr
// CPU allocation ratio
Descr string ` json:"descr "`
CPUAllocationRatio float64 ` json:"cpu_allocation_ratio "`
// Drivers
// Description
D riv er s [ ] string ` json:"d riv er s"`
D escription string ` json:"d esc "`
// Eco
// Descr
Eco interface { } ` json:"eco "`
Descr string ` json:"descr "`
// Error
// Drivers
Error uint64 ` json:"error "`
Drivers [ ] string ` json:"drivers "`
// Grid ID
// Eco
GID uint64 ` json:"gid "`
Eco interface { } ` json:"eco "`
// GID
// Error
GUID uint64 ` json:"guid "`
Error uint64 ` json:"error "`
// ID
// Grid ID
ID uint64 ` json:" id"`
G ID uint64 ` json:" g id"`
// List image IDs
// GID
Images [ ] uint64 ` json:"images "`
GUID uint64 ` json:"guid "`
// Login
// ID
Login string ` json:"login" `
ID uint64 ` json:"id" `
// List image IDs
Images [ ] uint64 ` json:"images" `
// Mem allocation ratio
// Login
// Required: false
Login string ` json:"login" `
MemAllocationRatio float64 ` json:"mem_allocation_ratio" `
// Name
// Mem allocation ratio
Name string ` json:"name "`
MemAllocationRatio float64 ` json:"mem_allocation_ratio "`
// Password
// Name
Password string ` json:"passwd "`
Name string ` json:"name "`
// Reference ID
// Packegas
ReferenceID string ` json:"referenceId "`
Packages Packages ` json:"packages "`
// Status
// Password
Status string ` json:"status "`
Password string ` json:"passwd "`
// Type
// Reference ID
Type string ` json:"type" `
ReferenceID string ` json:"referenceId" `
} ` json:"data" `
EntryCount uint64 ` json:"entryCount" `
// Status
Status string ` json:"status" `
// Type
Type string ` json:"type" `
}
// Package
type Packages struct {
// LibvirtBin
LibvirtBin LibvirtBin ` json:"libvirt-bin" `
// 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" `
}
}