[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-API] [PATCH 1 of 7] CA-34933: add proper interface for xapi_session.ml functions
ocaml/xapi/xapi_session.mli | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) # HG changeset patch # User Marcus Granado <marcus.granado@xxxxxxxxxx> # Date 1274449016 -3600 # Node ID 96d378af31d020fa0b3a961fbe6904618254de6d # Parent bd3789fcfcf8853f58b71407311f5399bfe1d89b CA-34933: add proper interface for xapi_session.ml functions Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx> diff -r bd3789fcfcf8 -r 96d378af31d0 ocaml/xapi/xapi_session.mli --- /dev/null +++ b/ocaml/xapi/xapi_session.mli @@ -0,0 +1,36 @@ +(* + * Copyright (C) 2006-2009 Citrix Systems Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; version 2.1 only. with the special + * exception on linking described in file LICENSE. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + *) +(** Module that defines public API functions for Session objects + * @group XenAPI functions +*) + +(** {2 (Fill in Title!)} *) + +(* TODO: consider updating sm_exec.ml and removing login_no_password from this mli *) +val login_no_password: __context:Context.t -> uname:string option -> host:[ `host ] Ref.t -> pool:bool -> is_local_superuser:bool -> subject:[ `subject ] Ref.t -> auth_user_sid:string -> auth_user_name:string -> rbac_permissions:string list -> [ `session ] Ref.t + +(* public functions *) +val destroy_db_session: __context:Context.t -> self:API.ref_session -> unit +val revalidate_all_sessions: __context:Context.t -> unit +val consider_touching_session: (XMLRPC.xmlrpc -> XMLRPC.xmlrpc) -> API.ref_session -> unit -> unit +val slave_login: __context:Context.t -> host:[ `host ] Ref.t -> psecret:string -> [ `session ] Ref.t +val slave_local_login: __context:Context.t -> psecret:string -> API.ref_session +val slave_local_login_with_password: __context:Context.t -> uname:string -> pwd:string -> API.ref_session +val login_with_password: __context:Context.t -> uname:string -> pwd:string -> version:'a -> [ `session ] Ref.t +val change_password: __context:Context.t -> old_pwd:string -> new_pwd:string -> unit +val logout: __context:Context.t -> unit +val local_logout: __context:Context.t -> unit +val get_group_subject_identifier_from_session: __context:Context.t -> session:[ `session ] Ref.t -> string +val get_all_subject_identifiers: __context:Context.t -> string list +val logout_subject_identifier: __context:Context.t -> subject_identifier:string -> unit Attachment:
xen-api.hg-1.patch _______________________________________________ xen-api mailing list xen-api@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |