Inttegro.UploadRequests.FulfillRequest (inttegro v0.2.0)

Copy Markdown View Source

Public binary input for Inttegro.UploadRequests.fulfill/3.

The id and token identify the upload capability presented to the uploader. Fulfilment does not use the application's secret key. Keep the token out of logs and discard it after the upload reaches a terminal state.

Summary

Types

t()

An upload-request capability and the bytes supplied through it.

Functions

Builds a fulfilment request and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.UploadRequests.FulfillRequest{
  bytes: binary(),
  file_name: String.t(),
  id: String.t(),
  token: String.t()
}

An upload-request capability and the bytes supplied through it.

Functions

new!(attrs)

@spec new!(map() | keyword()) :: t()

Builds a fulfilment request and raises KeyError when a required field is missing.