ArchAstro.Types.StorageFile (archastro v0.2.0)

Copy Markdown

A file stored in the platform's object storage, with metadata and a signed URL for downloading its contents.

Summary

Types

t()

@type t() :: %ArchAstro.Types.StorageFile{
  app: String.t() | ArchAstro.Unset.t(),
  content_type: String.t() | ArchAstro.Unset.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  filename: String.t() | ArchAstro.Unset.t(),
  id: String.t(),
  image_source: ArchAstro.Types.ImageSource.t() | ArchAstro.Unset.t(),
  org: String.t() | ArchAstro.Unset.t(),
  sandbox: String.t() | ArchAstro.Unset.t(),
  share_url: String.t() | ArchAstro.Unset.t(),
  size: integer() | ArchAstro.Unset.t(),
  team: String.t() | ArchAstro.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.Unset.t(),
  url: String.t() | ArchAstro.Unset.t(),
  user: String.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()