final case class ResourcePolicyRule(verbs: Seq[String], apiGroups: Seq[String], resources: Seq[String], clusterScope: Option[Boolean] = None, namespaces: Option[Seq[String]] = None) extends Product with Serializable

ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., Namespace=="") and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.

Source
ResourcePolicyRule.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourcePolicyRule
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ResourcePolicyRule(verbs: Seq[String], apiGroups: Seq[String], resources: Seq[String], clusterScope: Option[Boolean] = None, namespaces: Option[Seq[String]] = None)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addApiGroups(newValues: String*): ResourcePolicyRule

    Appends new values to apiGroups

  5. def addNamespaces(newValues: String*): ResourcePolicyRule

    Appends new values to namespaces

  6. def addResources(newValues: String*): ResourcePolicyRule

    Appends new values to resources

  7. def addVerbs(newValues: String*): ResourcePolicyRule

    Appends new values to verbs

  8. val apiGroups: Seq[String]
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. val clusterScope: Option[Boolean]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def mapApiGroups(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

    transforms apiGroups to result of function

  17. def mapClusterScope(f: (Boolean) => Boolean): ResourcePolicyRule

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

  18. def mapNamespaces(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

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

  19. def mapResources(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

    transforms resources to result of function

  20. def mapVerbs(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

    transforms verbs to result of function

  21. val namespaces: Option[Seq[String]]
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. val resources: Seq[String]
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. val verbs: Seq[String]
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. def withApiGroups(value: Seq[String]): ResourcePolicyRule

    Returns a new data with apiGroups set to new value

  33. def withClusterScope(value: Boolean): ResourcePolicyRule

    Returns a new data with clusterScope set to new value

  34. def withNamespaces(value: Seq[String]): ResourcePolicyRule

    Returns a new data with namespaces set to new value

  35. def withResources(value: Seq[String]): ResourcePolicyRule

    Returns a new data with resources set to new value

  36. def withVerbs(value: Seq[String]): ResourcePolicyRule

    Returns a new data with verbs set to new value

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped