com.coralogix.zio.k8s.model.authorization.v1
SubjectAccessReviewSpec
Companion object SubjectAccessReviewSpec
case class SubjectAccessReviewSpec(extra: Optional[Map[String, Vector[String]]] = Optional.Absent, groups: Optional[Vector[String]] = Optional.Absent, nonResourceAttributes: Optional[NonResourceAttributes] = Optional.Absent, resourceAttributes: Optional[ResourceAttributes] = Optional.Absent, uid: Optional[String] = Optional.Absent, user: Optional[String] = Optional.Absent) extends Product with Serializable
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
- extra
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
- groups
Groups is the groups you're testing for.
- uid
UID information about the requesting user.
- user
User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
- Alphabetic
- By Inheritance
- SubjectAccessReviewSpec
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SubjectAccessReviewSpec(extra: Optional[Map[String, Vector[String]]] = Optional.Absent, groups: Optional[Vector[String]] = Optional.Absent, nonResourceAttributes: Optional[NonResourceAttributes] = Optional.Absent, resourceAttributes: Optional[ResourceAttributes] = Optional.Absent, uid: Optional[String] = Optional.Absent, user: Optional[String] = Optional.Absent)
- extra
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
- groups
Groups is the groups you're testing for.
- uid
UID information about the requesting user.
- user
User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
Value Members
- val extra: Optional[Map[String, Vector[String]]]
-
def
getExtra: IO[K8sFailure, Map[String, Vector[String]]]
Extra corresponds to the user.Info.GetExtra() method from the authenticator.
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getGroups: IO[K8sFailure, Vector[String]]
Groups is the groups you're testing for.
Groups is the groups you're testing for.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getNonResourceAttributes: IO[K8sFailure, NonResourceAttributes]
Gets nonResourceAttributes.
Gets nonResourceAttributes.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getResourceAttributes: IO[K8sFailure, ResourceAttributes]
Gets resourceAttributes.
Gets resourceAttributes.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getUid: IO[K8sFailure, String]
UID information about the requesting user.
UID information about the requesting user.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getUser: IO[K8sFailure, String]
User is the user you're testing for.
User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val groups: Optional[Vector[String]]
- val nonResourceAttributes: Optional[NonResourceAttributes]
- val resourceAttributes: Optional[ResourceAttributes]
- val uid: Optional[String]
- val user: Optional[String]