]> git.ipfire.org Git - thirdparty/libvirt.git/commit
list: Use virConnectListAllSecrets in virsh
authorOsier Yang <jyang@redhat.com>
Fri, 14 Sep 2012 08:38:52 +0000 (16:38 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 17 Sep 2012 05:23:19 +0000 (13:23 +0800)
commitd15d092cda87766c7dc2cb5f8568170d492b27ba
treed248d3bb2051846926a529a2d87f2667ed452b61
parent473ee27e6ac0dc18fd9b0d36ba70190022069f0b
list: Use virConnectListAllSecrets in virsh

This introduces four new options for secret-list, to filter the
returned secrets by whether it's ephemeral or not, and/or by
whether it's private or not.

* tools/virsh-secret.c: (New helper vshSecretSorter,
  vshSecretListFree, and vshCollectSecretList; Use the new
  API for secret-list; error out if flags are specified,
  because there is no way to filter the results when using
  old APIs (no APIs to get the properties (ephemeral, private)
  of a secret yet).

* tools/virsh.pod: Document the 4 new options.
tools/virsh-secret.c
tools/virsh.pod