ExCedar.IpAddr (ex_cedar v0.1.2)

Copy Markdown View Source

Cedar ip extension value.

Construct with new/1 and use in entity attributes or request context maps. Cedar encodes these as {"__extn": {"fn": "ip", "arg": value}}.

ExCedar.IpAddr.new("192.168.0.1")
ExCedar.IpAddr.new("192.168.0.0/24")

Summary

Functions

Wraps an IP address or CIDR string in an IpAddr extension value struct.

Types

t()

@type t() :: %ExCedar.IpAddr{value: String.t()}

Functions

new(value)

@spec new(String.t()) :: t()

Wraps an IP address or CIDR string in an IpAddr extension value struct.