Subject

io.k8s.api.rbac.v1.Subject
See theSubject companion object
final case class Subject(kind: String, name: String, apiGroup: Option[String], namespace: Option[String])

Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.

Attributes

Companion
object
Source
Subject.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def mapApiGroup(f: String => String): Subject

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

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

Attributes

Source
Subject.scala
def mapKind(f: String => String): Subject

transforms kind to result of function

transforms kind to result of function

Attributes

Source
Subject.scala
def mapName(f: String => String): Subject

transforms name to result of function

transforms name to result of function

Attributes

Source
Subject.scala
def mapNamespace(f: String => String): Subject

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

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

Attributes

Source
Subject.scala
def withApiGroup(value: String): Subject

Returns a new data with apiGroup set to new value

Returns a new data with apiGroup set to new value

Attributes

Source
Subject.scala
def withKind(value: String): Subject

Returns a new data with kind set to new value

Returns a new data with kind set to new value

Attributes

Source
Subject.scala
def withName(value: String): Subject

Returns a new data with name set to new value

Returns a new data with name set to new value

Attributes

Source
Subject.scala
def withNamespace(value: String): Subject

Returns a new data with namespace set to new value

Returns a new data with namespace set to new value

Attributes

Source
Subject.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product