View Source EnvGuard.Constraints (env_guard v1.0.0)

Defines functions that can be used to check constraints on environment variables.

Summary

Types

Functions

Link to this function

check(value, type, constraint)

View Source
@spec check(any(), type(), constraint()) ::
  {:ok, any()} | {:error, :constraint_violation, String.t()}
Link to this function

check_constraints(value, type, constraints)

View Source
@spec check_constraints(any(), type(), [constraint()]) ::
  {:ok, any()} | {:error, :constraint_violation, String.t()}