View Source SmartCity.HostedFile (smart_city v6.0.0)

Defines the information needed to process uploaded files by components of the system including the files' type, parent identifier, and location info.

Link to this section Summary

Functions

Instantiates an instance of a file upload event struct.

Link to this section Types

@type bucket() :: String.t()
@type id() :: String.t()
@type key() :: String.t()
@type t() :: %SmartCity.HostedFile{
  bucket: bucket(),
  dataset_id: id(),
  key: key(),
  mime_type: SmartCity.Helpers.mime_type(),
  version: term()
}

Link to this section Functions

@spec new(String.t() | map()) :: {:ok, map()} | {:error, term()}

Instantiates an instance of a file upload event struct.