summaryrefslogtreecommitdiffstats
path: root/libvirt-python-api.xml
Commit message (Collapse)AuthorAgeFilesLines
* Fix UUID handling in secrets/storage encryption APIsDaniel P. Berrange2009-09-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert all the secret/storage encryption APIs / wire format to handle UUIDs in raw format instead of non-canonical printable format. Guarentees data format correctness. * docs/schemas/storageencryption.rng: Make UUID mandatory for a secret and validate fully * docs/schemas/secret.rng: Fully validate UUID * include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add virSecretLookupByUUID and virSecretGetUUID. Make virSecretGetUUIDString follow normal API design pattern * python/generator.py: Skip generation of virSecretGetUUID, virSecretGetUUIDString and virSecretLookupByUUID * python/libvir.c, python/libvirt-python-api.xml: Manual impl of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID * qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/ Fix get_nonnull_secret/make_nonnull_secret to use unsigned char * qemud/remote_protocol.x: Fix remote_nonnull_secret to use a remote_uuid instead of remote_nonnull_string for UUID field. Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an remote_uuid value * qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h, qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h, qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate * src/datatypes.h, src/datatypes.c: Store UUID in raw format instead of printable. Change virGetSecret to use raw format UUID * src/driver.h: Rename virDrvSecretLookupByUUIDString to virDrvSecretLookupByUUID and use raw format UUID * src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID and re-implement virSecretLookupByUUIDString and virSecretGetUUIDString in terms of those * src/libvirt_public.syms: Add virSecretLookupByUUID and virSecretGetUUID * src/remote_internal.c: Rename remoteSecretLookupByUUIDString to remoteSecretLookupByUUID. Fix typo in args for remoteSecretDefineXML impl. Use raw UUID format for get_nonnull_secret and make_nonnull_secret * src/storage_encryption_conf.c, src/storage_encryption_conf.h: Storage UUID in raw format, and require it to be present in XML. Use UUID parser to validate. * secret_conf.h, secret_conf.c: Generate a UUID if none is provided. Storage UUID in raw format. * src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets in a filed with printable UUID, instead of base64 UUID. * src/virsh.c: Adjust for changed public API contract of virSecretGetUUIDString. * src/storage_Backend.c: DOn't undefine secret we just generated upon successful volume creation. Fix to handle raw UUIDs. Generate a non-clashing UUID * src/qemu_driver.c: Change to use lookupByUUID instead of lookupByUUIDString
* Secret manipulation API docs refresh & wire up python generatorMiloslav Trmač2009-09-011-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sample session: >>> import libvirt >>> c = libvirt.open('qemu:///session') >>> c.listSecrets() ['12247729-47d2-a783-88ce-b329d4781cd3', 'reee', 'abc'] >>> s = c.secretDefineXML("<secret ephemeral='no' private='no'>\n<description>Something for use</description>\n<volume>/foo/bar</volume>\n</secret>\n") >>> s.UUIDString() '340c2dfb-811b-eda8-da9e-25ccd7bfd650' >>> s.XMLDesc() "<secret ephemeral='no' private='no'>\n <uuid>340c2dfb-811b-eda8-da9e-25ccd7bfd650</uuid>\n <description>Something for use</description>\n <volume>/foo/bar</volume>\n</secret>\n" >>> s.setValue('abc\0xx\xffx') 0 >>> s.value() 'abc\x00xx\xffx' >>> s.undefine() 0 * python/generator.py: Add rules for virSecret APIs * python/libvir.c, python/libvirt-python-api.xml: Manual impl of virSecretSetValue, virSecretGetValue$ and virConnectListSecrets APIs * python/libvirt_wrap.h, python/types.c: Wrapper for virSecret objects * docs/libvirt-api.xml, docs/libvirt-refs.xml, docs/html/libvirt-virterror.html, docs/html/libvirt-libvirt.html, docs/devhelp/libvirt-virterror.html, docs/devhelp/libvirt-libvirt.html: Re-generate with 'make api'
* Python binding for node device APIs (David Lively)Daniel P. Berrange2008-11-211-0/+12
|
* * python/libvir.py python/libvirt-python-api.xml: more pythonv0.4.4LIBVIRT_0_4_4Daniel Veillard2008-06-111-0/+5
| | | | | cleanups by Cole Robinson Daniel
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:Daniel Veillard2008-06-101-0/+20
| | | | | Apply patch from Cole Robinson fixing UUIDString for python Daniel
* Fix python code generation for storage APIsDaniel P. Berrange2008-05-291-0/+25
|
* Fix typo "informations" -> "information" (Atsushi SAKAI andRichard W.M. Jones2008-03-141-4/+4
| | | | Saori FUKUTA).
* Many typos fixed (Atsushi SAKAI).v0.4.1LIBVIRT_0_4_1Richard W.M. Jones2008-02-291-2/+2
|
* Add missing vcpu/schedular APIs to python bindingDaniel P. Berrange2008-01-211-0/+28
|
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:Daniel Veillard2007-12-071-0/+7
| | | | | add a python binding for virNodeGetCellsFreeMemory Daniel
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:v0.3.3LIBVIRT_0_3_3Daniel Veillard2007-09-301-0/+12
| | | | | provide bindings for block and interface statistics Daniel
* Added vir*GetAutostart APIs to pythonDaniel P. Berrange2007-04-101-0/+10
|
* Added python bindings for networking APIsDaniel P. Berrange2007-03-091-0/+21
|
* Added binding for virConnectListDefinedDomains apiv0.1.9v0.1.11v0.1.10LIBVIRT_0_1_9LIBVIRT_0_1_11LIBVIRT_0_1_10Daniel P. Berrange2006-11-161-0/+5
|
* * include/libvirt.h[.in] include/virterror.h src/driver.hDaniel Veillard2006-03-291-3/+8
| | | | | | | | | | | src/internal.h src/libvirt_sym.version src/xen_internal.c src/xs_internal.c: added a new entry point to get node hardware informations virGetNodeInfo, and associated driver hook. * src/xend_internal.c: implemented the node and version information hooks for the Xen Daemon * python/libvir.c python/libvirt-python-api.xml python/generator.py: also added Python bindings for the new call Daniel
* * python/generator.py python/libvir.c python/libvirt-python-api.xml:Daniel Veillard2006-02-241-0/+6
| | | | | | UUID strings can contain zeroes, so the autogenerated conversion functions don't work. Daniel
* * src/libvirt.c: fixing a bug before the release of 0.0.5v0.0.5LIBVIRT_0_0_5Daniel Veillard2006-02-231-1/+6
| | | | | | | | * python/generator.py python/libvir.c python/libvirt-python-api.xml: also fixing the binding for getting a domain UUID * python/tests/Makefile.am python/tests/uuid.py: added a test for the new UUID API Daniel
* * //* : renamed the project libvirt , this affects all makefiles,v0.0.3LIBVIRT_0_0_3Daniel Veillard2006-02-091-0/+15
the specs, the icons, the docs, etc ... * configure.in: prepare for 0.0.3 Daniel