47 lines
720 B
Go
47 lines
720 B
Go
package storagepool
|
|
|
|
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",
|
|
}
|
|
|
|
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",
|
|
}
|