Featurevisor.PackageEvaluationScope (featurevisor v2.1.0)

Copy Markdown View Source

What a package evaluation's callback reads with: the context after every module's before_evaluation, as a getter's conditions see it, and conditions answered with it in the evaluation's one dependency session.

Summary

Functions

Answers conditions as the module API's match_conditions does, with readers for leaves only the package knows, such as input, answering {:ok, value}, or :error for no value.

Types

t()

@type t() :: %Featurevisor.PackageEvaluationScope{
  context: map(),
  match: (term(), map() -> boolean())
}

Functions

match_conditions(package_evaluation_scope, conditions, readers \\ %{})

@spec match_conditions(t(), term(), map()) :: boolean()

Answers conditions as the module API's match_conditions does, with readers for leaves only the package knows, such as input, answering {:ok, value}, or :error for no value.