From 11bca8e4d912f360926c29981b6faf9dba45bf86 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Tue, 4 Aug 2009 20:38:21 +0200 Subject: Secret manipulation API docs refresh & wire up python generator Sample session: >>> import libvirt >>> c = libvirt.open('qemu:///session') >>> c.listSecrets() ['12247729-47d2-a783-88ce-b329d4781cd3', 'reee', 'abc'] >>> s = c.secretDefineXML("\nSomething for use\n/foo/bar\n\n") >>> s.UUIDString() '340c2dfb-811b-eda8-da9e-25ccd7bfd650' >>> s.XMLDesc() "\n 340c2dfb-811b-eda8-da9e-25ccd7bfd650\n Something for use\n /foo/bar\n\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' --- libvirt-python-api.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'libvirt-python-api.xml') diff --git a/libvirt-python-api.xml b/libvirt-python-api.xml index 43a5b4e..e5c1fb9 100644 --- a/libvirt-python-api.xml +++ b/libvirt-python-api.xml @@ -172,5 +172,23 @@ + + Fetches the value associated with a secret. + + + + + + List the defined secret IDs + + + + + Associates a value with a secret. + + + + + -- cgit