package datakit-ci

  1. Overview
  2. Docs
type t
val read : t -> Datakit_path.t -> [ `Dir of string list | `File of Cstruct.t | `Link of string ] or_error Lwt.t
val stat : t -> Datakit_path.t -> Datakit_S.stat option or_error Lwt.t
val exists : t -> Datakit_path.t -> bool or_error Lwt.t
val exists_file : t -> Datakit_path.t -> bool or_error Lwt.t
val exists_dir : t -> Datakit_path.t -> bool or_error Lwt.t
val read_file : t -> Datakit_path.t -> Cstruct.t or_error Lwt.t
val read_dir : t -> Datakit_path.t -> string list or_error Lwt.t
val create_dir : t -> Datakit_path.t -> unit or_error Lwt.t
val create_file : t -> Datakit_path.t -> ?executable:bool -> Cstruct.t -> unit or_error Lwt.t
val replace_file : t -> Datakit_path.t -> Cstruct.t -> unit or_error Lwt.t
val create_or_replace_file : t -> Datakit_path.t -> Cstruct.t -> unit or_error Lwt.t
val set_executable : t -> Datakit_path.t -> bool -> unit or_error Lwt.t
val remove : t -> Datakit_path.t -> unit or_error Lwt.t
val rename : t -> Datakit_path.t -> string -> unit or_error Lwt.t
val truncate : t -> Datakit_path.t -> int64 -> unit or_error Lwt.t
val make_dirs : t -> Datakit_path.t -> unit or_error Lwt.t
val commit : t -> message:string -> unit or_error Lwt.t
val abort : t -> unit Lwt.t
type merge_inputs = {
  1. ours : Tree.t;
  2. theirs : Tree.t;
  3. base : Tree.t;
}
val merge : t -> Commit.t -> (merge_inputs * Datakit_path.t list) or_error Lwt.t
val parents : t -> Commit.t list or_error Lwt.t
val set_parents : t -> Commit.t list -> unit or_error Lwt.t
val conflicts : t -> Datakit_path.t list or_error Lwt.t
val closed : t -> bool
OCaml

Innovation. Community. Security.