NetworkPolicy

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case class EgressRule(ports: List[Port], to: List[Peer])
case class IPBlock(cidr: String, except: List[String])
case class IngressRule(ports: List[Port], from: List[Peer])
case class Peer(podSelector: Option[LabelSelector], namespaceSelector: Option[LabelSelector], ipBlock: Option[IPBlock])
case class Port(port: NameablePort, protocol: Value)
case class Spec(podSelector: LabelSelector, ingress: List[IngressRule], egress: List[EgressRule], policyTypes: List[String])

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def allowAllEgress(name: String, namespace: Namespace): NetworkPolicy
def allowAllIngress(name: String, namespace: Namespace): NetworkPolicy
def apply(name: String): NetworkPolicy
def denyAllEgress(name: String, namespace: Namespace): NetworkPolicy
def denyAllIngress(name: String, namespace: Namespace): NetworkPolicy
def denyAllIngressAndEgress(name: String, namespace: Namespace): NetworkPolicy
def named(name: String): NetworkPolicy

Implicits

Implicits

implicit val egressRuleFmt: Format[EgressRule]
implicit val ingressRuleFmt: Format[IngressRule]
implicit val ipBlockFmt: Format[IPBlock]
implicit val networkPolicyFmt: Format[NetworkPolicy]
implicit val peerFmt: Format[Peer]
implicit val portFmt: Format[Port]
implicit val specfmt: Format[Spec]