package caldav

  1. Overview
  2. Docs
type state = Fs.t
val mkcol : state -> Webdav_config.config -> path:string -> user:string -> Cohttp.Code.meth -> Ptime.t -> data:string -> (unit, [ `Bad_request | `Conflict | `Forbidden of string ]) Stdlib.result Lwt.t
val propfind : state -> Webdav_config.config -> path:string -> user:string -> depth:string option -> data:string -> (string, [> `Bad_request | `Forbidden of string | `Property_not_found ]) Stdlib.result Lwt.t
val proppatch : state -> Webdav_config.config -> path:string -> user:string -> data:string -> (string, [> `Bad_request ]) Stdlib.result Lwt.t
val report : state -> Webdav_config.config -> path:string -> user:string -> data:string -> (string, [> `Bad_request ]) Stdlib.result Lwt.t
val write_component : state -> Webdav_config.config -> path:string -> Ptime.t -> content_type:string -> data:string -> (string, [> `Bad_request | `Conflict | `Forbidden | `Internal_server_error ]) Stdlib.result Lwt.t
val delete : state -> path:string -> Ptime.t -> bool Lwt.t
val read : state -> path:string -> is_mozilla:bool -> (string * string, [> `Not_found ]) Stdlib.result Lwt.t
val access_granted_for_acl : state -> Webdav_config.config -> Cohttp.Code.meth -> path:string -> user:string -> bool Lwt.t
val last_modified : state -> path:string -> string option Lwt.t
val compute_etag : state -> path:string -> string option Lwt.t
val verify_auth_header : state -> Webdav_config.config -> string -> (string, [> `Msg of string | `Unknown_user of string * string ]) Stdlib.result Lwt.t
val make_user : ?props:(Webdav_xml.fqname * Properties.property) list -> state -> Ptime.t -> Webdav_config.config -> name:string -> password:string -> salt:Cstruct.t -> (Uri.t, [> `Conflict ]) Stdlib.result Lwt.t
val change_user_password : state -> Webdav_config.config -> name:string -> password:string -> salt:Cstruct.t -> (unit, [> `Internal_server_error ]) Stdlib.result Lwt.t
val delete_user : state -> Webdav_config.config -> string -> (unit, [> `Conflict | `Internal_server_error | `Not_found ]) Stdlib.result Lwt.t
val make_group : state -> Ptime.t -> Webdav_config.config -> string -> string list -> (Uri.t, [> `Conflict ]) Stdlib.result Lwt.t
val enroll : state -> Webdav_config.config -> member:string -> group:string -> (unit, [> `Conflict ]) Stdlib.result Lwt.t
val resign : state -> Webdav_config.config -> member:string -> group:string -> (unit, [> `Conflict ]) Stdlib.result Lwt.t
val replace_group_members : state -> Webdav_config.config -> string -> string list -> (unit, [> `Conflict ]) Stdlib.result Lwt.t
val delete_group : state -> Webdav_config.config -> string -> (unit, [> `Conflict | `Internal_server_error | `Not_found ]) Stdlib.result Lwt.t
val initialize_fs : state -> Ptime.t -> Webdav_config.config -> unit Lwt.t
val initialize_fs_for_apple_testsuite : state -> Ptime.t -> Webdav_config.config -> unit Lwt.t
val generate_salt : unit -> Cstruct.t
val connect : state -> Webdav_config.config -> string option -> state Lwt.t
OCaml

Innovation. Community. Security.