LibOss.Typespecs (lib_oss v0.3.0)

View Source

some typespecs

Summary

Types

access_point_name()

@type access_point_name() :: binary()

acl()

@type acl() :: binary()

body()

@type body() :: iodata() | nil

bucket()

@type bucket() :: binary()

dict()

@type dict() :: %{required(binary()) => any()}

etag()

@type etag() :: binary()

headers()

@type headers() :: [{String.t(), String.t()}]

host()

@type host() :: String.t()

http_status()

@type http_status() :: non_neg_integer()

method()

@type method() :: :get | :post | :head | :patch | :delete | :options | :put

name()

@type name() :: atom() | {:global, term()} | {:via, module(), term()}

object()

@type object() :: binary()

on_start()

@type on_start() ::
  {:ok, pid()} | :ignore | {:error, {:already_started, pid()} | term()}

opts()

@type opts() :: keyword()

params()

@type params() :: %{required(String.t()) => binary()}

part_num()

@type part_num() :: non_neg_integer()

upload_id()

@type upload_id() :: binary()