module Secret:sig
..end
type 'rw
t
type
secret_usage_type =
| |
NoType |
|||
| |
Volume |
|||
| |
Ceph |
|||
| |
ISCSI |
|||
| |
TLS |
(* |
Usage type of a secret.
| *) |
val lookup_by_uuid : 'a Libvirt.Connect.t -> Libvirt.uuid -> 'a t
val lookup_by_uuid_string : 'a Libvirt.Connect.t -> string -> 'a t
val lookup_by_usage : 'a Libvirt.Connect.t ->
secret_usage_type -> string -> 'a t
val define_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw t
val get_uuid : [> `R ] t -> Libvirt.uuid
val get_uuid_string : [> `R ] t -> string
val get_usage_type : [> `R ] t -> secret_usage_type
val get_usage_id : [> `R ] t -> string
val get_xml_desc : [> `R ] t -> Libvirt.xml
val set_value : [> `W ] t -> bytes -> unit
val get_value : [> `R ] t -> bytes
val undefine : [> `W ] t -> unit
val free : [> `R ] t -> unit
The secret object is automatically freed if it is garbage
collected. This function just forces it to be freed right
away.
val const : [> `R ] t -> Libvirt.ro t
const conn
turns a read/write secret into a read-only
secret. Note that the opposite operation is impossible.