ImagePipe.Source.Resolved (image_pipe v0.1.0)

Copy Markdown View Source

Validated source information returned by an adapter's ImagePipe.Source.resolve/3.

Source adapters construct this value from canonical source intent. The identity and cache_semantics fields describe cache-safe source identity. fetch contains adapter-private data needed by the later fetch callback. name is the configured source that resolved this value. ImagePipe sets it after resolution, and it is nil for {:file, _} and {:binary, _} inputs. Adapters leave it unset.

Summary

Types

http_cache()

@type http_cache() :: :inherit | :validators | :auto | :public | :private

internal_cache()

@type internal_cache() :: :enabled | :disabled

t()

@type t() :: %ImagePipe.Source.Resolved{
  cache_semantics: ImagePipe.Source.CacheSemantics.t(),
  fetch: term(),
  http_cache: http_cache(),
  identity: term(),
  internal_cache: internal_cache(),
  name: atom() | nil
}