Dockerignore.Pattern (Dockerignore v0.1.0)

Copy Markdown View Source

Describes a parsed and compiled .dockerignore rule.

compiled is private implementation state. It is not part of the supported data contract and may change between releases.

Summary

Types

compiled()

@type compiled() :: term()

match_type()

@type match_type() :: :exact | :prefix | :suffix | :regexp

t()

@type t() :: %Dockerignore.Pattern{
  compiled: compiled(),
  line: pos_integer(),
  match_type: match_type(),
  negated?: boolean(),
  pattern: binary(),
  regex_source: binary() | nil,
  source: binary()
}