Miosa.Types.NetworkPolicyRule (Miosa v1.0.0)

Copy Markdown View Source

A single network firewall rule (allow or deny).

Summary

Types

action()

@type action() :: :allow | :deny

direction()

@type direction() :: :ingress | :egress

t()

@type t() :: %Miosa.Types.NetworkPolicyRule{
  action: action(),
  direction: direction(),
  host: String.t() | nil,
  port: String.t() | pos_integer() | nil,
  protocol: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()