IPBlock

final case class IPBlock(cidr: String, except: Option[Seq[String]])

IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.

Companion:
object
Source:
IPBlock.scala
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addExcept(newValues: String*): IPBlock

Appends new values to except

Appends new values to except

Source:
IPBlock.scala

transforms cidr to result of function

transforms cidr to result of function

Source:
IPBlock.scala

if except has a value, transforms to the result of function

if except has a value, transforms to the result of function

Source:
IPBlock.scala
def withCidr(value: String): IPBlock

Returns a new data with cidr set to new value

Returns a new data with cidr set to new value

Source:
IPBlock.scala

Returns a new data with except set to new value

Returns a new data with except set to new value

Source:
IPBlock.scala

Inherited methods

Inherited from:
Product