TestcontainerEx.PullPolicy (testcontainer_ex v0.1.0)

Copy Markdown View Source

Pull policies that control whether an image is fetched from a remote registry before starting a container.

Summary

Types

t()

@type t() :: %TestcontainerEx.PullPolicy{
  always_pull: boolean() | nil,
  pull_condition: (struct(), Tesla.Env.t() -> boolean()) | nil,
  pull_if_missing: boolean() | nil
}

Functions

always_pull()

@spec always_pull() :: t()

never_pull()

@spec never_pull() :: t()

pull_condition(expr)

@spec pull_condition(
  expr :: (config :: struct(), conn :: Tesla.Env.t() -> true | false)
) :: t()

pull_if_missing()

@spec pull_if_missing() :: t()