View Source EnvGuard.Constraints (env_guard v1.0.0)
Defines functions that can be used to check constraints on environment variables.
Summary
Types
@type constraint() :: EnvGuard.Types.constraint()
@type type() :: EnvGuard.Types.type()
Functions
@spec check(any(), type(), constraint()) :: {:ok, any()} | {:error, :constraint_violation, String.t()}
@spec check_constraints(any(), type(), [constraint()]) :: {:ok, any()} | {:error, :constraint_violation, String.t()}