Dockerignore.Matcher (Dockerignore v0.1.0)

Copy Markdown View Source

Evaluates immutable compiled .dockerignore patterns against paths.

Summary

Types

t()

@type t() :: %Dockerignore.Matcher{patterns: [Dockerignore.Pattern.t()]}

Functions

explain(matcher, path)

@spec explain(t(), binary()) ::
  {:ignored, Dockerignore.Pattern.t()}
  | {:kept, Dockerignore.Pattern.t() | :no_match}

ignored?(matcher, path)

@spec ignored?(t(), binary()) :: boolean()