module Secret:sig..end
Module dealing with secrets.
type 'rw t
Secret handle.
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 tLookup a secret by UUID. This uses the packed byte array UUID.
val lookup_by_uuid_string : 'a Libvirt.Connect.t -> string -> 'a tLookup a secret by (string) UUID.
val lookup_by_usage : 'a Libvirt.Connect.t ->
secret_usage_type -> string -> 'a tLookup a secret by usage type, and usage ID.
val define_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw tDefine a secret.
val get_uuid : [> `R ] t -> Libvirt.uuidGet the UUID (as a packed byte array) of the secret.
val get_uuid_string : [> `R ] t -> stringGet the UUID (as a printable string) of the secret.
val get_usage_type : [> `R ] t -> secret_usage_typeGet the usage type of the secret.
val get_usage_id : [> `R ] t -> stringGet the usage ID of the secret.
val get_xml_desc : [> `R ] t -> Libvirt.xmlGet the XML description.
val set_value : [> `W ] t -> bytes -> unitSet a new value for the secret.
val get_value : [> `R ] t -> bytesGet the value of the secret.
val undefine : [> `W ] t -> unitUndefine a secret.
val free : [> `R ] t -> unitFree a secret object in memory.
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 tconst conn turns a read/write secret into a read-only
secret. Note that the opposite operation is impossible.