View Source CozyOSS (cozy_oss v0.1.3)

An SDK builder for RESTful API of Aliyun OSS / Alibaba Cloud OSS.

Link to this section Summary

Link to this section Functions

Link to this function

build!(config, api_spec_config, opts \\ [])

View Source

Bulids a struct %CozyOSS.ApiRequest{}.

This function has built-in signing support, and it's controlled by option :sign_by:

  • sign_by: :header (default) - add signatures to request headers.
  • sign_by: :url - add signatures to URL.

When using sign_by: :url, an extra option :expiration_in_seconds is supported.

See CozyOSS.ApiRequest.build!/3 for more information.

See CozyOSS.ApiClient.request/1.

Link to this function

sign_post_object_policy(config, conditions, expiration_in_seconds)

View Source

See CozyOSS.Object.sign_post_object_policy/3.

See CozyOSS.ApiRequest.to_url!/1.