View Source LibOss.Typespecs (lib_oss v0.2.1)

some typespecs

Summary

Types

@type access_point_name() :: binary()
@type acl() :: binary()
@type body() :: iodata() | nil
@type bucket() :: binary()
@type dict() :: %{required(binary()) => any()}
@type etag() :: binary()
@type headers() :: [{String.t(), String.t()}]
@type host() :: String.t()
@type http_status() :: non_neg_integer()
@type method() :: :get | :post | :head | :patch | :delete | :options | :put
@type name() :: atom() | {:global, term()} | {:via, module(), term()}
@type object() :: binary()
@type on_start() ::
  {:ok, pid()} | :ignore | {:error, {:already_started, pid()} | term()}
@type opts() :: keyword()
@type params() :: %{required(String.t()) => binary()}
@type part_num() :: non_neg_integer()
@type upload_id() :: binary()