Packages

c

io.k8s.api.core.v1

SecurityContext

final case class SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Int] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Int] = None, privileged: Option[Boolean] = None, runAsNonRoot: Option[Boolean] = None) extends Product with Serializable

SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.

Source
SecurityContext.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SecurityContext
  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 SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Int] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Int] = None, privileged: Option[Boolean] = None, runAsNonRoot: Option[Boolean] = 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. val allowPrivilegeEscalation: Option[Boolean]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val capabilities: Option[Capabilities]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. val privileged: Option[Boolean]
  16. val procMount: Option[String]
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. val readOnlyRootFilesystem: Option[Boolean]
  19. val runAsGroup: Option[Int]
  20. val runAsNonRoot: Option[Boolean]
  21. val runAsUser: Option[Int]
  22. val seLinuxOptions: Option[SELinuxOptions]
  23. val seccompProfile: Option[SeccompProfile]
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. val windowsOptions: Option[WindowsSecurityContextOptions]
  29. def withAllowPrivilegeEscalation(value: Boolean): SecurityContext
  30. def withCapabilities(value: Capabilities): SecurityContext
  31. def withPrivileged(value: Boolean): SecurityContext
  32. def withProcMount(value: String): SecurityContext
  33. def withReadOnlyRootFilesystem(value: Boolean): SecurityContext
  34. def withRunAsGroup(value: Int): SecurityContext
  35. def withRunAsNonRoot(value: Boolean): SecurityContext
  36. def withRunAsUser(value: Int): SecurityContext
  37. def withSeLinuxOptions(value: SELinuxOptions): SecurityContext
  38. def withSeccompProfile(value: SeccompProfile): SecurityContext
  39. def withWindowsOptions(value: WindowsSecurityContextOptions): SecurityContext

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped