2024-03-12 16:33:14 +00:00
|
|
|
package storagepool
|
2024-03-14 04:21:01 +00:00
|
|
|
|
|
|
|
import "libvirt.org/go/libvirt"
|
|
|
|
|
|
|
|
var StoragePoolStateMap = map[libvirt.StoragePoolState]string{
|
|
|
|
libvirt.STORAGE_POOL_INACTIVE: "inactive",
|
|
|
|
libvirt.STORAGE_POOL_BUILDING: "building",
|
|
|
|
libvirt.STORAGE_POOL_RUNNING: "running",
|
|
|
|
libvirt.STORAGE_POOL_DEGRADED: "degraded",
|
|
|
|
libvirt.STORAGE_POOL_INACCESSIBLE: "inaccessible",
|
|
|
|
}
|
2024-03-19 04:38:28 +00:00
|
|
|
|
|
|
|
var Types = []string{
|
|
|
|
"dir",
|
|
|
|
"fs",
|
|
|
|
"netfs",
|
|
|
|
"disk",
|
|
|
|
"iscsi",
|
|
|
|
"logical",
|
|
|
|
"scsi",
|
|
|
|
"mpath",
|
|
|
|
"rbd",
|
|
|
|
"sheepdog",
|
|
|
|
"gluster",
|
|
|
|
"zfs",
|
|
|
|
"iscsi-direct",
|
|
|
|
}
|
|
|
|
|
|
|
|
var LocalTypes = []string{
|
|
|
|
"dir",
|
|
|
|
"fs",
|
|
|
|
"disk",
|
|
|
|
"logical",
|
|
|
|
"scsi",
|
|
|
|
"zfs",
|
|
|
|
}
|
|
|
|
|
|
|
|
var NetTypes = []string{
|
|
|
|
"netfs",
|
|
|
|
"iscsi",
|
|
|
|
"mpath",
|
|
|
|
"rbd",
|
|
|
|
"sheepdog",
|
|
|
|
"gluster",
|
|
|
|
"iscsi-direct",
|
|
|
|
}
|