Commit 228de8fc authored by Daniel P. Berrange's avatar Daniel P. Berrange

Rename remaining objects with Vir prefix

Signed-off-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
parent e856e18f
......@@ -170,34 +170,34 @@ const (
VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNEL = ConnectDomainEventAgentLifecycleReason(C.VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNEL)
)
type VirCPUCompareResult int
type CPUCompareResult int
const (
VIR_CPU_COMPARE_ERROR = VirCPUCompareResult(C.VIR_CPU_COMPARE_ERROR)
VIR_CPU_COMPARE_INCOMPATIBLE = VirCPUCompareResult(C.VIR_CPU_COMPARE_INCOMPATIBLE)
VIR_CPU_COMPARE_IDENTICAL = VirCPUCompareResult(C.VIR_CPU_COMPARE_IDENTICAL)
VIR_CPU_COMPARE_SUPERSET = VirCPUCompareResult(C.VIR_CPU_COMPARE_SUPERSET)
VIR_CPU_COMPARE_ERROR = CPUCompareResult(C.VIR_CPU_COMPARE_ERROR)
VIR_CPU_COMPARE_INCOMPATIBLE = CPUCompareResult(C.VIR_CPU_COMPARE_INCOMPATIBLE)
VIR_CPU_COMPARE_IDENTICAL = CPUCompareResult(C.VIR_CPU_COMPARE_IDENTICAL)
VIR_CPU_COMPARE_SUPERSET = CPUCompareResult(C.VIR_CPU_COMPARE_SUPERSET)
)
type VirNodeAllocPagesFlags int
type NodeAllocPagesFlags int
const (
VIR_NODE_ALLOC_PAGES_ADD = VirNodeAllocPagesFlags(C.VIR_NODE_ALLOC_PAGES_ADD)
VIR_NODE_ALLOC_PAGES_SET = VirNodeAllocPagesFlags(C.VIR_NODE_ALLOC_PAGES_SET)
VIR_NODE_ALLOC_PAGES_ADD = NodeAllocPagesFlags(C.VIR_NODE_ALLOC_PAGES_ADD)
VIR_NODE_ALLOC_PAGES_SET = NodeAllocPagesFlags(C.VIR_NODE_ALLOC_PAGES_SET)
)
type VirNodeSuspendTarget int
type NodeSuspendTarget int
const (
VIR_NODE_SUSPEND_TARGET_MEM = VirNodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_MEM)
VIR_NODE_SUSPEND_TARGET_DISK = VirNodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_DISK)
VIR_NODE_SUSPEND_TARGET_HYBRID = VirNodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_HYBRID)
VIR_NODE_SUSPEND_TARGET_MEM = NodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_MEM)
VIR_NODE_SUSPEND_TARGET_DISK = NodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_DISK)
VIR_NODE_SUSPEND_TARGET_HYBRID = NodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_HYBRID)
)
type VirNodeGetCPUStatsAllCPUs int
type NodeGetCPUStatsAllCPUs int
const (
VIR_NODE_CPU_STATS_ALL_CPUS = VirNodeGetCPUStatsAllCPUs(C.VIR_NODE_CPU_STATS_ALL_CPUS)
VIR_NODE_CPU_STATS_ALL_CPUS = NodeGetCPUStatsAllCPUs(C.VIR_NODE_CPU_STATS_ALL_CPUS)
)
const (
......@@ -222,7 +222,7 @@ type Connect struct {
ptr C.virConnectPtr
}
type VirNodeInfo struct {
type NodeInfo struct {
Model string
Memory uint64
Cpus uint
......@@ -414,13 +414,13 @@ func (c *Connect) GetCapabilities() (string, error) {
return capabilities, nil
}
func (c *Connect) GetNodeInfo() (*VirNodeInfo, error) {
func (c *Connect) GetNodeInfo() (*NodeInfo, error) {
var cinfo C.virNodeInfo
result := C.virNodeGetInfo(c.ptr, &cinfo)
if result == -1 {
return nil, GetLastError()
}
return &VirNodeInfo{
return &NodeInfo{
Model: C.GoString((*C.char)(unsafe.Pointer(&cinfo.model[0]))),
Memory: uint64(cinfo.memory),
Cpus: uint(cinfo.cpus),
......@@ -432,7 +432,7 @@ func (c *Connect) GetNodeInfo() (*VirNodeInfo, error) {
}, nil
}
func (ni *VirNodeInfo) GetMaxCPUs() uint32 {
func (ni *NodeInfo) GetMaxCPUs() uint32 {
return ni.Nodes * ni.Sockets * ni.Cores * ni.Threads
}
......@@ -1359,7 +1359,7 @@ func (c *Connect) InterfaceChangeRollback(flags uint) error {
return nil
}
func (c *Connect) AllocPages(pageSizes map[int]int64, startCell int, cellCount uint, flags VirNodeAllocPagesFlags) (int, error) {
func (c *Connect) AllocPages(pageSizes map[int]int64, startCell int, cellCount uint, flags NodeAllocPagesFlags) (int, error) {
cpages := make([]C.uint, len(pageSizes))
ccounts := make([]C.ulonglong, len(pageSizes))
......@@ -1401,7 +1401,7 @@ func (c *Connect) GetCPUMap(flags uint32) (map[int]bool, uint, error) {
return cpumap, uint(conline), nil
}
type VirNodeCPUStats struct {
type NodeCPUStats struct {
KernelSet bool
Kernel uint64
UserSet bool
......@@ -1416,7 +1416,7 @@ type VirNodeCPUStats struct {
Utilization uint64
}
func (c *Connect) GetCPUStats(cpuNum int, flags uint32) (*VirNodeCPUStats, error) {
func (c *Connect) GetCPUStats(cpuNum int, flags uint32) (*NodeCPUStats, error) {
var nparams C.int
ret := C.virNodeGetCPUStats(c.ptr, C.int(cpuNum), nil, &nparams, C.uint(0))
......@@ -1430,7 +1430,7 @@ func (c *Connect) GetCPUStats(cpuNum int, flags uint32) (*VirNodeCPUStats, error
return nil, GetLastError()
}
stats := &VirNodeCPUStats{}
stats := &NodeCPUStats{}
for i := 0; i < int(nparams); i++ {
param := params[i]
field := C.GoString((*C.char)(unsafe.Pointer(&param.field)))
......@@ -1505,7 +1505,7 @@ func (c *Connect) GetFreePages(pageSizes []uint64, startCell int, maxCells uint,
return counts, nil
}
type VirNodeMemoryParameters struct {
type NodeMemoryParameters struct {
ShmPagesToScanSet bool
ShmPagesToScan uint
ShmSleepMillisecsSet bool
......@@ -1524,7 +1524,7 @@ type VirNodeMemoryParameters struct {
ShmMergeAcrossNodes uint
}
func getMemoryParameterFieldInfo(params *VirNodeMemoryParameters) map[string]typedParamsFieldInfo {
func getMemoryParameterFieldInfo(params *NodeMemoryParameters) map[string]typedParamsFieldInfo {
return map[string]typedParamsFieldInfo{
C.VIR_NODE_MEMORY_SHARED_PAGES_TO_SCAN: typedParamsFieldInfo{
set: &params.ShmPagesToScanSet,
......@@ -1561,8 +1561,8 @@ func getMemoryParameterFieldInfo(params *VirNodeMemoryParameters) map[string]typ
}
}
func (c *Connect) GetMemoryParameters(flags uint32) (*VirNodeMemoryParameters, error) {
params := &VirNodeMemoryParameters{}
func (c *Connect) GetMemoryParameters(flags uint32) (*NodeMemoryParameters, error) {
params := &NodeMemoryParameters{}
info := getMemoryParameterFieldInfo(params)
var nparams C.int
......@@ -1588,7 +1588,7 @@ func (c *Connect) GetMemoryParameters(flags uint32) (*VirNodeMemoryParameters, e
return params, nil
}
type VirNodeMemoryStats struct {
type NodeMemoryStats struct {
TotalSet bool
Total uint64
FreeSet bool
......@@ -1599,7 +1599,7 @@ type VirNodeMemoryStats struct {
Cached uint64
}
func (c *Connect) GetMemoryStats(cellNum int, flags uint32) (*VirNodeMemoryStats, error) {
func (c *Connect) GetMemoryStats(cellNum int, flags uint32) (*NodeMemoryStats, error) {
var nparams C.int
ret := C.virNodeGetMemoryStats(c.ptr, C.int(cellNum), nil, &nparams, 0)
......@@ -1613,7 +1613,7 @@ func (c *Connect) GetMemoryStats(cellNum int, flags uint32) (*VirNodeMemoryStats
return nil, GetLastError()
}
stats := &VirNodeMemoryStats{}
stats := &NodeMemoryStats{}
for i := 0; i < int(nparams); i++ {
param := params[i]
field := C.GoString((*C.char)(unsafe.Pointer(&param.field)))
......@@ -1636,25 +1636,25 @@ func (c *Connect) GetMemoryStats(cellNum int, flags uint32) (*VirNodeMemoryStats
return stats, nil
}
type VirNodeSecurityModel struct {
type NodeSecurityModel struct {
Model string
Doi string
}
func (c *Connect) GetSecurityModel() (*VirNodeSecurityModel, error) {
func (c *Connect) GetSecurityModel() (*NodeSecurityModel, error) {
var cmodel C.virSecurityModel
ret := C.virNodeGetSecurityModel(c.ptr, &cmodel)
if ret == -1 {
return nil, GetLastError()
}
return &VirNodeSecurityModel{
return &NodeSecurityModel{
Model: C.GoString((*C.char)(unsafe.Pointer(&cmodel.model))),
Doi: C.GoString((*C.char)(unsafe.Pointer(&cmodel.doi))),
}, nil
}
func (c *Connect) SetMemoryParameters(params *VirNodeMemoryParameters, flags uint32) error {
func (c *Connect) SetMemoryParameters(params *NodeMemoryParameters, flags uint32) error {
info := getMemoryParameterFieldInfo(params)
var nparams C.int
......@@ -1682,7 +1682,7 @@ func (c *Connect) SetMemoryParameters(params *VirNodeMemoryParameters, flags uin
return nil
}
func (c *Connect) SuspendForDuration(target VirNodeSuspendTarget, duration uint64, flags uint32) error {
func (c *Connect) SuspendForDuration(target NodeSuspendTarget, duration uint64, flags uint32) error {
ret := C.virNodeSuspendForDuration(c.ptr, C.uint(target), C.ulonglong(duration), C.uint(flags))
if ret == -1 {
return GetLastError()
......@@ -1737,7 +1737,7 @@ func (c *Connect) BaselineCPU(xmlCPUs []string, flags ConnectBaselineCPUFlags) (
return C.GoString(ret), nil
}
func (c *Connect) CompareCPU(xmlDesc string, flags ConnectCompareCPUFlags) (VirCPUCompareResult, error) {
func (c *Connect) CompareCPU(xmlDesc string, flags ConnectCompareCPUFlags) (CPUCompareResult, error) {
cxmlDesc := C.CString(xmlDesc)
defer C.free(cxmlDesc)
......@@ -1746,7 +1746,7 @@ func (c *Connect) CompareCPU(xmlDesc string, flags ConnectCompareCPUFlags) (VirC
return VIR_CPU_COMPARE_ERROR, GetLastError()
}
return VirCPUCompareResult(ret), nil
return CPUCompareResult(ret), nil
}
func (c *Connect) DomainXMLFromNative(nativeFormat string, nativeConfig string, flags uint32) (string, error) {
......
......@@ -434,19 +434,19 @@ const (
VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT = DomainInterfaceAddressesSource(C.VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT)
)
type VirKeycodeSet int
type KeycodeSet int
const (
VIR_KEYCODE_SET_LINUX = VirKeycodeSet(C.VIR_KEYCODE_SET_LINUX)
VIR_KEYCODE_SET_XT = VirKeycodeSet(C.VIR_KEYCODE_SET_XT)
VIR_KEYCODE_SET_ATSET1 = VirKeycodeSet(C.VIR_KEYCODE_SET_ATSET1)
VIR_KEYCODE_SET_ATSET2 = VirKeycodeSet(C.VIR_KEYCODE_SET_ATSET2)
VIR_KEYCODE_SET_ATSET3 = VirKeycodeSet(C.VIR_KEYCODE_SET_ATSET3)
VIR_KEYCODE_SET_OSX = VirKeycodeSet(C.VIR_KEYCODE_SET_OSX)
VIR_KEYCODE_SET_XT_KBD = VirKeycodeSet(C.VIR_KEYCODE_SET_XT_KBD)
VIR_KEYCODE_SET_USB = VirKeycodeSet(C.VIR_KEYCODE_SET_USB)
VIR_KEYCODE_SET_WIN32 = VirKeycodeSet(C.VIR_KEYCODE_SET_WIN32)
VIR_KEYCODE_SET_RFB = VirKeycodeSet(C.VIR_KEYCODE_SET_RFB)
VIR_KEYCODE_SET_LINUX = KeycodeSet(C.VIR_KEYCODE_SET_LINUX)
VIR_KEYCODE_SET_XT = KeycodeSet(C.VIR_KEYCODE_SET_XT)
VIR_KEYCODE_SET_ATSET1 = KeycodeSet(C.VIR_KEYCODE_SET_ATSET1)
VIR_KEYCODE_SET_ATSET2 = KeycodeSet(C.VIR_KEYCODE_SET_ATSET2)
VIR_KEYCODE_SET_ATSET3 = KeycodeSet(C.VIR_KEYCODE_SET_ATSET3)
VIR_KEYCODE_SET_OSX = KeycodeSet(C.VIR_KEYCODE_SET_OSX)
VIR_KEYCODE_SET_XT_KBD = KeycodeSet(C.VIR_KEYCODE_SET_XT_KBD)
VIR_KEYCODE_SET_USB = KeycodeSet(C.VIR_KEYCODE_SET_USB)
VIR_KEYCODE_SET_WIN32 = KeycodeSet(C.VIR_KEYCODE_SET_WIN32)
VIR_KEYCODE_SET_RFB = KeycodeSet(C.VIR_KEYCODE_SET_RFB)
)
type ConnectDomainEventBlockJobStatus int
......@@ -858,12 +858,12 @@ const (
VIR_MIGRATE_POSTCOPY = DomainMigrateFlags(C.VIR_MIGRATE_POSTCOPY)
)
type VirVcpuState int
type VcpuState int
const (
VIR_VCPU_OFFLINE = VirVcpuState(C.VIR_VCPU_OFFLINE)
VIR_VCPU_RUNNING = VirVcpuState(C.VIR_VCPU_RUNNING)
VIR_VCPU_BLOCKED = VirVcpuState(C.VIR_VCPU_BLOCKED)
VIR_VCPU_OFFLINE = VcpuState(C.VIR_VCPU_OFFLINE)
VIR_VCPU_RUNNING = VcpuState(C.VIR_VCPU_RUNNING)
VIR_VCPU_BLOCKED = VcpuState(C.VIR_VCPU_BLOCKED)
)
type DomainBlockInfo struct {
......@@ -885,7 +885,7 @@ type DomainMemoryStat struct {
Val uint64
}
type VirVcpuInfo struct {
type VcpuInfo struct {
Number uint32
State int32
CpuTime uint64
......@@ -1695,7 +1695,7 @@ func (d *Domain) MemoryStats(nrStats uint32, flags uint32) ([]DomainMemoryStat,
return out, nil
}
func (d *Domain) GetVcpus(maxInfo int32) ([]VirVcpuInfo, error) {
func (d *Domain) GetVcpus(maxInfo int32) ([]VcpuInfo, error) {
ptr := make([]C.virVcpuInfo, maxInfo)
result := C.virDomainGetVcpus(
......@@ -1703,12 +1703,12 @@ func (d *Domain) GetVcpus(maxInfo int32) ([]VirVcpuInfo, error) {
C.int(maxInfo), nil, C.int(0))
if result == -1 {
return []VirVcpuInfo{}, GetLastError()
return []VcpuInfo{}, GetLastError()
}
out := make([]VirVcpuInfo, 0)
out := make([]VcpuInfo, 0)
for i := 0; i < int(result); i++ {
out = append(out, VirVcpuInfo{
out = append(out, VcpuInfo{
Number: uint32(ptr[i].number),
State: int32(ptr[i].state),
CpuTime: uint64(ptr[i].cpuTime),
......@@ -1744,7 +1744,7 @@ func extractCpuMask(bytesCpuMaps []byte, n, mapLen int) []uint32 {
return out
}
func (d *Domain) GetVcpusCpuMap(maxInfo int, maxCPUs uint32) ([]VirVcpuInfo, error) {
func (d *Domain) GetVcpusCpuMap(maxInfo int, maxCPUs uint32) ([]VcpuInfo, error) {
ptr := make([]C.virVcpuInfo, maxInfo)
mapLen := virCpuMapLen(maxCPUs) // Length of CPUs bitmask in bytes
......@@ -1763,9 +1763,9 @@ func (d *Domain) GetVcpusCpuMap(maxInfo int, maxCPUs uint32) ([]VirVcpuInfo, err
// Convert to golang []byte for easier handling
bytesCpuMaps := C.GoBytes(unsafe.Pointer(cpuMaps), C.int(bufSize))
out := make([]VirVcpuInfo, 0)
out := make([]VcpuInfo, 0)
for i := 0; i < int(result); i++ {
out = append(out, VirVcpuInfo{
out = append(out, VcpuInfo{
Number: uint32(ptr[i].number),
State: int32(ptr[i].state),
CpuTime: uint64(ptr[i].cpuTime),
......@@ -3520,12 +3520,12 @@ func (d *Domain) SetSchedulerParametersFlags(params *DomainSchedulerParameters,
return nil
}
type VirSecurityLabel struct {
type SecurityLabel struct {
Label string
Enforcing bool
}
func (d *Domain) GetSecurityLabel() (*VirSecurityLabel, error) {
func (d *Domain) GetSecurityLabel() (*SecurityLabel, error) {
var clabel C.virSecurityLabel
ret := C.virDomainGetSecurityLabel(d.ptr, &clabel)
......@@ -3533,25 +3533,25 @@ func (d *Domain) GetSecurityLabel() (*VirSecurityLabel, error) {
return nil, GetLastError()
}
return &VirSecurityLabel{
return &SecurityLabel{
Label: C.GoString((*C.char)(unsafe.Pointer(&clabel.label))),
Enforcing: clabel.enforcing == 1,
}, nil
}
func (d *Domain) GetSecurityLabelList() ([]VirSecurityLabel, error) {
func (d *Domain) GetSecurityLabelList() ([]SecurityLabel, error) {
var clabels *C.virSecurityLabel
ret := C.virDomainGetSecurityLabelList(d.ptr, &clabels)
if ret == -1 {
return []VirSecurityLabel{}, GetLastError()
return []SecurityLabel{}, GetLastError()
}
labels := make([]VirSecurityLabel, ret)
labels := make([]SecurityLabel, ret)
for i := 0; i < int(ret); i++ {
var clabel *C.virSecurityLabel
clabel = (*C.virSecurityLabel)(unsafe.Pointer(uintptr(unsafe.Pointer(clabels)) + (unsafe.Sizeof(*clabel) * uintptr(i))))
labels[i] = VirSecurityLabel{
labels[i] = SecurityLabel{
Label: C.GoString((*C.char)(unsafe.Pointer(&clabel.label))),
Enforcing: clabel.enforcing == 1,
}
......@@ -3783,7 +3783,7 @@ func (d *Domain) GetFSInfo(flags uint32) ([]DomainFSInfo, error) {
return fsinfo, nil
}
func (d *Domain) PMSuspendForDuration(target VirNodeSuspendTarget, duration uint64, flags uint32) error {
func (d *Domain) PMSuspendForDuration(target NodeSuspendTarget, duration uint64, flags uint32) error {
ret := C.virDomainPMSuspendForDuration(d.ptr, C.uint(target), C.ulonglong(duration), C.uint(flags))
if ret == -1 {
return GetLastError()
......
......@@ -533,31 +533,31 @@ const (
VIR_FROM_LIBSSH = ErrorDomain(C.VIR_FROM_LIBSSH)
)
type VirError struct {
type Error struct {
Code ErrorNumber
Domain ErrorDomain
Message string
Level ErrorLevel
}
func (err VirError) Error() string {
func (err Error) Error() string {
return fmt.Sprintf("[Code-%d] [Domain-%d] %s",
err.Code, err.Domain, err.Message)
}
var ErrNoError = VirError{
var ErrNoError = Error{
Code: VIR_ERR_OK,
Domain: VIR_FROM_NONE,
Message: "",
Level: VIR_ERR_NONE,
}
func GetLastError() VirError {
func GetLastError() Error {
err := C.virGetLastError()
if err == nil {
return ErrNoError
}
virErr := VirError{
virErr := Error{
Code: ErrorNumber(err.code),
Domain: ErrorDomain(err.domain),
Message: C.GoString(err.message),
......
......@@ -11,7 +11,7 @@ func TestGetLastError(t *testing.T) {
t.Fatalf("Expected an error when creating invalid connection")
}
got := GetLastError()
expected := VirError{0, 0, "", 0}
expected := Error{0, 0, "", 0}
if !reflect.DeepEqual(got, expected) {
t.Errorf("Expected error %+v, got %+v", expected, got)
}
......
......@@ -7,13 +7,13 @@ package libvirt
*/
import "C"
type VirEventHandleType int
type EventHandleType int
const (
VIR_EVENT_HANDLE_READABLE = VirEventHandleType(C.VIR_EVENT_HANDLE_READABLE)
VIR_EVENT_HANDLE_WRITABLE = VirEventHandleType(C.VIR_EVENT_HANDLE_WRITABLE)
VIR_EVENT_HANDLE_ERROR = VirEventHandleType(C.VIR_EVENT_HANDLE_ERROR)
VIR_EVENT_HANDLE_HANGUP = VirEventHandleType(C.VIR_EVENT_HANDLE_HANGUP)
VIR_EVENT_HANDLE_READABLE = EventHandleType(C.VIR_EVENT_HANDLE_READABLE)
VIR_EVENT_HANDLE_WRITABLE = EventHandleType(C.VIR_EVENT_HANDLE_WRITABLE)
VIR_EVENT_HANDLE_ERROR = EventHandleType(C.VIR_EVENT_HANDLE_ERROR)
VIR_EVENT_HANDLE_HANGUP = EventHandleType(C.VIR_EVENT_HANDLE_HANGUP)
)
func EventRegisterDefaultImpl() error {
......
......@@ -14,11 +14,11 @@ import (
"unsafe"
)
type VirIPAddrType int
type IPAddrType int
const (
VIR_IP_ADDR_TYPE_IPV4 = VirIPAddrType(C.VIR_IP_ADDR_TYPE_IPV4)
VIR_IP_ADDR_TYPE_IPV6 = VirIPAddrType(C.VIR_IP_ADDR_TYPE_IPV6)
VIR_IP_ADDR_TYPE_IPV4 = IPAddrType(C.VIR_IP_ADDR_TYPE_IPV4)
VIR_IP_ADDR_TYPE_IPV6 = IPAddrType(C.VIR_IP_ADDR_TYPE_IPV6)
)
type NetworkXMLFlags int
......@@ -85,7 +85,7 @@ type Network struct {
type NetworkDHCPLease struct {
Iface string
ExpiryTime time.Time
Type VirIPAddrType
Type IPAddrType
Mac string
Iaid string
IPaddr string
......@@ -252,7 +252,7 @@ func (n *Network) GetDHCPLeases() ([]NetworkDHCPLease, error) {
leases = append(leases, NetworkDHCPLease{
Iface: C.GoString(clease.iface),
ExpiryTime: time.Unix(int64(clease.expirytime), 0),
Type: VirIPAddrType(clease._type),
Type: IPAddrType(clease._type),
Mac: C.GoString(clease.mac),
Iaid: C.GoString(clease.iaid),
IPaddr: C.GoString(clease.ipaddr),
......
......@@ -61,10 +61,10 @@ const (
VIR_STORAGE_VOL_WIPE_ALG_TRIM = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_TRIM) // Trim the underlying storage
)
type VirStorageXMLFlags int
type StorageXMLFlags int
const (
VIR_STORAGE_XML_INACTIVE = VirStorageXMLFlags(C.VIR_STORAGE_XML_INACTIVE)
VIR_STORAGE_XML_INACTIVE = StorageXMLFlags(C.VIR_STORAGE_XML_INACTIVE)
)
type StorageVol struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment