Module Sihl.StorageSource

include module type of struct include Sihl_facade.Storage end
Sourceval file_to_sexp : Sihl_contract.Storage.file -> Sexplib0.Sexp.t
Sourceval stored_to_sexp : Sihl_contract.Storage.stored -> Sexplib0.Sexp.t
include Sihl_contract.Storage.Sig
Sourceval find_opt : id:string -> Sihl_contract.Storage.stored option Lwt.t

Get the meta data of a complete file.

This will not download the content, use get_data_base64 for that.

Sourceval find : id:string -> Sihl_contract.Storage.stored Lwt.t
Sourceval delete : id:string -> unit Lwt.t
Sourceval upload_base64 : Sihl_contract.Storage.file -> base64:string -> Sihl_contract.Storage.stored Lwt.t

Upload base64 string as data content for file.

Sourceval update_base64 : Sihl_contract.Storage.stored -> base64:string -> Sihl_contract.Storage.stored Lwt.t

Upload and overwrite base64 strong content of file.

Sourceval download_data_base64_opt : Sihl_contract.Storage.stored -> string option Lwt.t

Download actual file content for file.

Sourceval download_data_base64 : Sihl_contract.Storage.stored -> string Lwt.t
Sourcemodule Setup : sig ... end