WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] [ocamldoc] Docs for the module handling the inventory

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] [ocamldoc] Docs for the module handling the inventory file
From: Rob Hoes <rob.hoes@xxxxxxxxxx>
Date: Wed, 2 Dec 2009 15:27:37 +0000
Delivery-date: Wed, 02 Dec 2009 07:27:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Rob Hoes <rob.hoes@xxxxxxxxxx>
[ocamldoc] Docs for the module handling the inventory file

Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>

diff -r ecb861963fc4 ocaml/xapi/xapi_inventory.mli
--- a/ocaml/xapi/xapi_inventory.mli     Tue Dec 01 18:08:02 2009 +0000
+++ b/ocaml/xapi/xapi_inventory.mli     Tue Dec 01 22:37:43 2009 +0000
@@ -12,44 +12,97 @@
  * GNU Lesser General Public License for more details.
  *)
 (** Interface to the Inventory file *)
- 
+
+(** The inventory file is a file containing key-value pair of information
+ *  related to the host. It is stored at /etc/xensource-inventory. *)
+
+(** Thrown when trying to retrieve a non-existing key. *)
 exception Missing_inventory_key of string
 
+(** Reads the inventory file from disk. *)
 val read_inventory: unit -> unit
+
+(** Clears the copy of the inventory file in memory and reads the file from 
disk. *)
 val reread_inventory: unit -> unit
 
+(** Return the value of key [key] in the inventory file. Throws 
{!Missing_inventory_key}
+ *  if the key does not exist. *)
 val lookup: string -> string
+
+(** Remove the key with the given name from the inventory file, if it exists. 
*)
 val remove: string -> unit
+
+(** Change the contents of key [key] in the inventory file to [value]. The key
+ *  is added if it does not yet exist. *)
 val update: string -> string -> unit
 
+(** Parses a line [line] from the inventory file, and returns a key-value pair 
if successful. *)
 val parse_inventory_entry: string -> (string * string) option
 
 (* Keys defined in Geneva *)
+(** Brand name, such as "XenServer" *)
 val _product_brand : string
+
+(** Product name, such as "xenenterprise" *)
 val _product_name : string
+
+(** Product version *)
 val _product_version : string
+
+(** Build number *)
 val _build_number : string
+
+(** Dom0 kernel version *)
 val _kernel_version : string
+
+(** Xen version *)
 val _xen_version : string
+
+(** Date on which the host was installed *)
 val _installation_date : string
+
+(** UUID of the default SR (?) *)
 val _default_sr : string
+
+(** Device path of primary disk *)
 val _primary_disk : string
+
+(** Device path of backup partition *)
 val _backup_partition : string
+
+(** UUID of the Host object in the xapi database *)
 val _installation_uuid : string
+
+(** Device path of the default SR used for local storage *)
 val _default_sr_physdevs : string
+
+(** Memory size of dom0 (?) *)
 val _dom0_mem : string
 
 
 (* Keys defined in Rio *)
+(** UUID of the control domain (dom0) *)
 val _control_domain_uuid : string
+
+(** UUID of the management PIF *)
 val _management_interface : string
 
 (* Keys defined in Miami *)
+(** OEM manufacturer name *)
 val _oem_manufacturer : string
+
+(** OEM model name *)
 val _oem_model : string
+
+(** OEM edition build number *)
 val _oem_build_number : string
+
+(** Machine serial number *)
 val _machine_serial_number : string
+
+(** Machine serial name *)
 val _machine_serial_name : string
 
-(* Keys defined in Orlando *)
+(* Keys defined in Orlando, redefined in MNR *)
+(** List of bridges that are automatically brought up when the host starts up 
*)
 val _current_interfaces : string

Attachment: doc-inventory
Description: Text document

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] [ocamldoc] Docs for the module handling the inventory file, Rob Hoes <=