libvirt-go-xml.git
3 weeks agoadd support for domain features master
Ryan Goodfellow [Sat, 22 Apr 2017 21:53:48 +0000]
add support for domain features

This commit adds support for domain features. It does so by introducing
a new family of types DomainFeature*. The aggregate type
DomainFeatureList has been added to the Domain type to plumb in the new
type family. Testing has also been added in domain_test.go

4 weeks agoAdd Pool and Volume fields to DomainDiskSource
Ian Campbell [Fri, 28 Apr 2017 13:32:01 +0000]
Add Pool and Volume fields to DomainDiskSource

This allows one to construct disks/cdroms from volumes such as:

<disk type='volume' device='cdrom'>
<driver name='qemu' type='raw'/>
<source pool='default' volume='myvolume'/>
<backingStore/>
<target dev='sdc' bus='sata'/>
<readonly/>
<alias name='sata0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>

via:

&libvirtxml.DomainDisk{
Type:   "volume",
Device: "cdrom",
Source: &libvirtxml.DomainDiskSource{
Pool:   "default",
Volume: "myvolume",
},
Target: &libvirtxml.DomainDiskTarget{
Dev: "sdc",
Bus: "sata",
},
}

Signed-off-by: Ian Campbell <ian.campbell@docker.com>

4 weeks agoSupport for filesystem devices
Ryan Goodfellow [Tue, 18 Apr 2017 22:01:18 +0000]
Support for filesystem devices

This commit adds filesystem device support. A new family of types
DomainFilesystem* are introduced and plumbed into the DomainDeviceList
struct.

Testing has also been included.

3 months agoAdd some omitempty annotations for disk config
Daniel P. Berrange [Thu, 23 Feb 2017 16:21:28 +0000]
Add some omitempty annotations for disk config

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agodomain: devices: Add channels structs
James Shubin [Tue, 31 Jan 2017 23:06:30 +0000]
domain: devices: Add channels structs

This adds the channels structs so that qemu guest agent state and other
related fields can be queried.

3 months agoAdd support for disk auth config
Daniel P. Berrange [Wed, 1 Feb 2017 17:01:14 +0000]
Add support for disk auth config

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoExpand domain disk source definition to cover network disks
Daniel P. Berrange [Wed, 1 Feb 2017 15:30:35 +0000]
Expand domain disk source definition to cover network disks

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoInitial implemention for Network mappings
Lian Duan [Sun, 29 Jan 2017 16:40:46 +0000]
Initial implemention for Network mappings

3 months agoExtend interface device definitions
Vincent Bernat [Thu, 26 Jan 2017 18:30:55 +0000]
Extend interface device definitions

This is still incomplete but most of the useful things are
here. Examples are taken from libvirt samples.

3 months agoAdd DomainCPU mappings
Lian Duan [Fri, 27 Jan 2017 21:57:56 +0000]
Add DomainCPU mappings

3 months agoAdd mapping for <vcpu></vcpu> for domain
Lian Duan [Fri, 27 Jan 2017 19:14:14 +0000]
Add mapping for <vcpu></vcpu> for domain

3 months agoAdd omitempty for DomainOSType's Arch and Machine
Lian Duan [Fri, 27 Jan 2017 20:04:08 +0000]
Add omitempty for DomainOSType's Arch and Machine

3 months agoFix mapping for DomainInterfaceMac & DomainInterfaceModel
Lian Duan [Fri, 27 Jan 2017 18:12:22 +0000]
Fix mapping for DomainInterfaceMac & DomainInterfaceModel

4 months agoMake NUMA memory sizes uint64
Daniel P. Berrange [Fri, 20 Jan 2017 13:19:51 +0000]
Make NUMA memory sizes uint64

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoThere is only a single <memory> element per NUMA node
Daniel P. Berrange [Fri, 20 Jan 2017 13:16:42 +0000]
There is only a single <memory> element per NUMA node

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdd resource partition parsing
Daniel P. Berrange [Thu, 19 Jan 2017 13:14:37 +0000]
Add resource partition parsing

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoChange UUID into string, rather than pointer to string
Daniel P. Berrange [Mon, 16 Jan 2017 14:19:17 +0000]
Change UUID into string, rather than pointer to string

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdapt tests for previous changes
Daniel P. Berrange [Mon, 16 Jan 2017 14:18:15 +0000]
Adapt tests for previous changes

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoMake disk driver source optional
Daniel P. Berrange [Mon, 16 Jan 2017 14:18:04 +0000]
Make disk driver source optional

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoMake FileSource field optional
Daniel P. Berrange [Mon, 16 Jan 2017 14:15:20 +0000]
Make FileSource field optional

There will be other types of disk source in future, so we must
use a pointer to the FileSource to ensure it is optional.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoFix memory value to be an int instead of string
Daniel P. Berrange [Mon, 16 Jan 2017 13:22:40 +0000]
Fix memory value to be an int instead of string

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdd support for domain maximum memory
Daniel P. Berrange [Mon, 16 Jan 2017 13:21:48 +0000]
Add support for domain maximum memory

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdded domain snapshot schema
Alexey Slaykovsky [Thu, 12 Jan 2017 09:44:08 +0000]
Added domain snapshot schema

Signed-off-by: Alexey Slaykovsky <aslaikov@redhat.com>

4 months agoUpdate docs to reflect marshal/unmarshal methods
Daniel P. Berrange [Wed, 11 Jan 2017 17:49:41 +0000]
Update docs to reflect marshal/unmarshal methods

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdd helper methods for marshalling objects to/from XML
Daniel P. Berrange [Wed, 11 Jan 2017 17:31:00 +0000]
Add helper methods for marshalling objects to/from XML

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdded Storage Pool and Storage Volume XML schemes.
Alexey Slaykovsky [Mon, 9 Jan 2017 07:15:21 +0000]
Added Storage Pool and Storage Volume XML schemes.

Signed-off-by: Alexey Slaykovsky <aslaikov@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdded domain OS struct and tests
Alexey Slaykovsky [Thu, 5 Jan 2017 13:59:44 +0000]
Added domain OS struct and tests

Signed-off-by: Alexey Slaykovsky <aslaikov@redhat.com>

4 months agoAdd package doc file
Daniel P. Berrange [Thu, 5 Jan 2017 12:48:05 +0000]
Add package doc file

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd parsing of <secret> object schema
Daniel P. Berrange [Wed, 21 Dec 2016 13:39:12 +0000]
Add parsing of <secret> object schema

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFinish <graphics> XML parsing
Daniel P. Berrange [Wed, 21 Dec 2016 11:10:50 +0000]
Finish <graphics> XML parsing

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFix formatting of git links in README.md
Daniel P. Berrange [Fri, 16 Dec 2016 11:33:19 +0000]
Fix formatting of git links in README.md

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoInitial import of code
Daniel P. Berrange [Fri, 16 Dec 2016 11:23:51 +0000]
Initial import of code

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>