You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
1.8 KiB
117 lines
1.8 KiB
package vfpool
|
|
|
|
// Main information about vfpool device
|
|
type ItemVFPool struct {
|
|
// AccountAccess
|
|
AccountAccess []uint64 `json:"accountAccess"`
|
|
|
|
// CreatedTime
|
|
CreatedTime uint64 `json:"createdTime"`
|
|
|
|
// Description
|
|
Description string `json:"description"`
|
|
|
|
// GID
|
|
GID uint64 `json:"gid"`
|
|
|
|
// GUID
|
|
GUID uint64 `json:"guid"`
|
|
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// RGAccess
|
|
RGAccess []uint64 `json:"rgAccess"`
|
|
|
|
// Status
|
|
Status string `json:"status"`
|
|
|
|
// UpdatedTime
|
|
UpdatedTime uint64 `json:"updatedTime"`
|
|
|
|
// VFS
|
|
VFS []VFS `json:"vfs"`
|
|
}
|
|
|
|
// List of information about vfpool devices
|
|
type ListVFPool struct {
|
|
Data []ItemVFPool `json:"data"`
|
|
|
|
EntryCount uint64 `json:"entryCount"`
|
|
}
|
|
|
|
// Detailed information about vfpool device
|
|
type RecordVFPool struct {
|
|
// AccountAccess
|
|
AccountAccess []uint64 `json:"accountAccess"`
|
|
|
|
// CreatedTime
|
|
CreatedTime uint64 `json:"createdTime"`
|
|
|
|
// Description
|
|
Description string `json:"description"`
|
|
|
|
// GID
|
|
GID uint64 `json:"gid"`
|
|
|
|
// GUID
|
|
GUID uint64 `json:"guid"`
|
|
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// Name
|
|
Name string `json:"name"`
|
|
|
|
// RGAccess
|
|
RGAccess []uint64 `json:"rgAccess"`
|
|
|
|
// Status
|
|
Status string `json:"status"`
|
|
|
|
// UpdatedTime
|
|
UpdatedTime uint64 `json:"updatedTime"`
|
|
|
|
// VFS
|
|
VFS []VFS `json:"vfs"`
|
|
}
|
|
|
|
// VFS struct
|
|
type VFS struct {
|
|
// NodeID
|
|
NodeID uint64 `json:"nodeId"`
|
|
|
|
// UpdatedTime
|
|
VFList VFList `json:"vfList"`
|
|
}
|
|
|
|
// VFList struct
|
|
type VFList []VFItem
|
|
|
|
// VFItem struct
|
|
type VFItem struct {
|
|
// NicName
|
|
NicName string `json:"nicName"`
|
|
|
|
// VFSInfo list
|
|
VFSInfo VFSInfoList `json:"vfsInfo"`
|
|
}
|
|
|
|
// VFSInfoList struct
|
|
type VFSInfoList []VFSInfoItem
|
|
|
|
// VFSInfoItem struct
|
|
type VFSInfoItem struct {
|
|
// ID
|
|
ID uint64 `json:"id"`
|
|
|
|
// Claimed
|
|
Claimed bool `json:"claimed"`
|
|
|
|
// VM ID
|
|
VMID uint64 `json:"vmId"`
|
|
}
|