package azblob-async

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

see Azure Blob Storage API(https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api)

val sign_exn : ?content_length:int64 -> ?headers:Cohttp.Header.t -> meth:Cohttp.Code.meth -> path:string -> ?query:(string * string list) list -> Azblob.Conn.t -> Cohttp.Header.t * Uri.t
val body_length_exn : [> `Empty | `String of string | `Strings of string list ] -> int64
val get_blob : ?interrupt:unit Async.Deferred.t -> ?ssl_config:Conduit_async.V2.Ssl.Config.t -> ?headers:Cohttp.Header.t -> path:string -> Azblob.Conn.t -> (Cohttp_async.Response.t * Cohttp_async.Body.t) Async.Deferred.t

get_blob downloads a blob.

val put_blob : ?interrupt:unit Async.Deferred.t -> ?ssl_config:Conduit_async.V2.Ssl.Config.t -> ?blob_type:[< `Append | `Block Block ] -> ?headers:Cohttp.Header.t -> path:string -> ?body:Cohttp_async.Body.t -> Azblob.Conn.t -> (Cohttp_async.Response.t * Cohttp_async.Body.t) Async.Deferred.t

put_blob uploads a blob. Replace if already exists on same path.

val append_block : ?interrupt:unit Async.Deferred.t -> ?ssl_config:Conduit_async.V2.Ssl.Config.t -> ?headers:Cohttp.Header.t -> path:string -> ?body:Cohttp_async.Body.t -> Azblob.Conn.t -> (Cohttp_async.Response.t * Cohttp_async.Body.t) Async.Deferred.t

append_block appends a blob. You should put_blob first with blob_type = `Append.

val delete_blob : ?interrupt:unit Async.Deferred.t -> ?ssl_config:Conduit_async.V2.Ssl.Config.t -> ?headers:Cohttp.Header.t -> path:string -> Azblob.Conn.t -> (Cohttp_async.Response.t * Cohttp_async.Body.t) Async.Deferred.t

delete_blob deletes a blob.

OCaml

Innovation. Community. Security.