X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=ecf86f11ccd22ccc31fc766b808d562bc0750f85;hb=99f68f259f92eee884c6c7396f61b9c16e2bf354;hp=d1970ededc4590aa363a50826ada069945c42416;hpb=13339826ea01f8dbd581b5d2544e7692171cf386;p=libguestfs.git diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index d1970ed..ecf86f1 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -172,3 +172,66 @@ val vgs_full : t -> lvm_vg array val lvs_full : t -> lvm_lv array (** list the LVM logical volumes (LVs) *) +val read_lines : t -> string -> string array +(** read file as lines *) + +val aug_init : t -> string -> int -> unit +(** create a new Augeas handle *) + +val aug_close : t -> unit +(** close the current Augeas handle *) + +val aug_defvar : t -> string -> string option -> int +(** define an Augeas variable *) + +val aug_defnode : t -> string -> string -> string -> int * bool +(** define an Augeas node *) + +val aug_get : t -> string -> string +(** look up the value of an Augeas path *) + +val aug_set : t -> string -> string -> unit +(** set Augeas path to value *) + +val aug_insert : t -> string -> string -> bool -> unit +(** insert a sibling Augeas node *) + +val aug_rm : t -> string -> int +(** remove an Augeas path *) + +val aug_mv : t -> string -> string -> unit +(** move Augeas node *) + +val aug_match : t -> string -> string array +(** return Augeas nodes which match path *) + +val aug_save : t -> unit +(** write all pending Augeas changes to disk *) + +val aug_load : t -> unit +(** load files into the tree *) + +val aug_ls : t -> string -> string array +(** list Augeas nodes under a path *) + +val rm : t -> string -> unit +(** remove a file *) + +val rmdir : t -> string -> unit +(** remove a directory *) + +val rm_rf : t -> string -> unit +(** remove a file or directory recursively *) + +val mkdir : t -> string -> unit +(** create a directory *) + +val mkdir_p : t -> string -> unit +(** create a directory and parents *) + +val chmod : t -> int -> string -> unit +(** change file mode *) + +val chown : t -> int -> int -> string -> unit +(** change file owner and group *) +