Antd.ManifestEntryInfo (antd v0.4.1)

Copy Markdown View Source

What a manifest says about one entry.

  • effective_name — path, or the content address in hex when there is none.
  • path — the entry's path, or nil.
  • size — the size recorded in the manifest (the creator's claim), or nil when none was recorded. Never 0 for "unset".
  • kind — "embedded" (the manifest carries the DataMap) or "public" (it carries a public DataMap address).
  • content_address — hex. The file's public DataMap address, whether or not it was ever made public; the same for private and public uploads of one file.
  • data_map — the embedded DataMap, in the hex form the download functions accept. Decode only; nil for public entries and in a build result.
  • exact_size — the exact plaintext size, from an embedded root DataMap or after a resolving decode; nil when unknown.
  • error — why a resolving decode failed for this entry, or nil. One entry's failure is reported here, not as a failed call.
  • sha256 — the plaintext's SHA-256 (lowercase hex) the manifest records for the entry, or nil when none. Requires antd 0.17.0 or later.

Summary

Types

t()

@type t() :: %Antd.ManifestEntryInfo{
  content_address: String.t(),
  data_map: String.t() | nil,
  effective_name: String.t(),
  error: String.t() | nil,
  exact_size: non_neg_integer() | nil,
  kind: String.t(),
  path: String.t() | nil,
  sha256: String.t() | nil,
  size: non_neg_integer() | nil
}