package obuilder-spec

  1. Overview
  2. Docs

Module Obuilder_specSource

Sourcetype copy = {
  1. from : [ `Context | `Build of string ];
  2. src : string list;
  3. dst : string;
  4. exclude : string list;
}
Sourceval sexp_of_copy : copy -> Sexplib0.Sexp.t
Sourceval copy_of_sexp : Sexplib0.Sexp.t -> copy
Sourcetype user = {
  1. uid : int;
  2. gid : int;
}
Sourceval sexp_of_user : user -> Sexplib0.Sexp.t
Sourceval user_of_sexp : Sexplib0.Sexp.t -> user
Sourcetype run = {
  1. cache : Cache.t list;
  2. network : string list;
  3. shell : string;
}
Sourceval sexp_of_run : run -> Sexplib0.Sexp.t
Sourceval run_of_sexp : Sexplib0.Sexp.t -> run
Sourcetype op = [
  1. | `Comment of string
  2. | `Workdir of string
  3. | `Shell of string list
  4. | `Run of run
  5. | `Copy of copy
  6. | `User of user
  7. | `Env of string * string
]
Sourceval sexp_of_op : op -> Sexplib0.Sexp.t
Sourceval op_of_sexp : Sexplib0.Sexp.t -> op
Sourceval __op_of_sexp__ : Sexplib0.Sexp.t -> op
Sourcetype t = private {
  1. child_builds : (string * t) list;
  2. from : string;
  3. ops : op list;
}
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval stage : ?child_builds:(string * t) list -> from:string -> op list -> t
Sourceval comment : ('a, unit, string, op) format4 -> 'a
Sourceval workdir : string -> op
Sourceval shell : string list -> op
Sourceval run : ?cache:Cache.t list -> ?network:string list -> ('a, unit, string, op) format4 -> 'a
Sourceval copy : ?from:[ `Context | `Build of string ] -> ?exclude:string list -> string list -> dst:string -> op
Sourceval env : string -> string -> op
Sourceval user : uid:int -> gid:int -> op
Sourceval root : user
Sourceval pp : t Fmt.t

pp f s is similar to Sexplib.Sexp.pp_hum f (sexp_of_t s), but attempts to improve the layout slightly by putting each operation on its own line.

Sourceval pp_op : op Fmt.t

pp_op formats op as an S-expression.

Sourcemodule Cache : sig ... end
Sourcemodule Docker : sig ... end
OCaml

Innovation. Community. Security.