View Source CozyOSS.Config (cozy_oss v0.1.3)

Link to this section Summary

Types

The host of API request.

t()

Link to this section Types

@type config() :: %{
  host: host(),
  access_key_id: String.t(),
  access_key_secret: String.t()
}
@type host() :: String.t()

The host of API request.

One of following formats:

  • <endpoint>, such as oss-us-west-1.aliyuncs.com.
  • <bucket name>.<endpoint>, such as example-bucket.oss-us-west-1.aliyuncs.com.
  • custom domain name, such as www.example.com.
@type t() :: %CozyOSS.Config{
  access_key_id: String.t(),
  access_key_secret: String.t(),
  host: host()
}

Link to this section Functions

@spec new!(config()) :: t()