Packages

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. def mapAllowPrivilegeEscalation(f: (Boolean) => Boolean): SecurityContext

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

  13. def mapCapabilities(f: (Capabilities) => Capabilities): SecurityContext

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

  14. def mapPrivileged(f: (Boolean) => Boolean): SecurityContext

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

  15. def mapProcMount(f: (String) => String): SecurityContext

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

  16. def mapReadOnlyRootFilesystem(f: (Boolean) => Boolean): SecurityContext

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

  17. def mapRunAsGroup(f: (Int) => Int): SecurityContext

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

  18. def mapRunAsNonRoot(f: (Boolean) => Boolean): SecurityContext

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

  19. def mapRunAsUser(f: (Int) => Int): SecurityContext

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

  20. def mapSeLinuxOptions(f: (SELinuxOptions) => SELinuxOptions): SecurityContext

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

  21. def mapSeccompProfile(f: (SeccompProfile) => SeccompProfile): SecurityContext

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

  22. def mapWindowsOptions(f: (WindowsSecurityContextOptions) => WindowsSecurityContextOptions): SecurityContext

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

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. val privileged: Option[Boolean]
  27. val procMount: Option[String]
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val readOnlyRootFilesystem: Option[Boolean]
  30. val runAsGroup: Option[Int]
  31. val runAsNonRoot: Option[Boolean]
  32. val runAsUser: Option[Int]
  33. val seLinuxOptions: Option[SELinuxOptions]
  34. val seccompProfile: Option[SeccompProfile]
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. val windowsOptions: Option[WindowsSecurityContextOptions]
  40. def withAllowPrivilegeEscalation(value: Boolean): SecurityContext

    Returns a new data with allowPrivilegeEscalation set to new value

  41. def withCapabilities(value: Capabilities): SecurityContext

    Returns a new data with capabilities set to new value

  42. def withPrivileged(value: Boolean): SecurityContext

    Returns a new data with privileged set to new value

  43. def withProcMount(value: String): SecurityContext

    Returns a new data with procMount set to new value

  44. def withReadOnlyRootFilesystem(value: Boolean): SecurityContext

    Returns a new data with readOnlyRootFilesystem set to new value

  45. def withRunAsGroup(value: Int): SecurityContext

    Returns a new data with runAsGroup set to new value

  46. def withRunAsNonRoot(value: Boolean): SecurityContext

    Returns a new data with runAsNonRoot set to new value

  47. def withRunAsUser(value: Int): SecurityContext

    Returns a new data with runAsUser set to new value

  48. def withSeLinuxOptions(value: SELinuxOptions): SecurityContext

    Returns a new data with seLinuxOptions set to new value

  49. def withSeccompProfile(value: SeccompProfile): SecurityContext

    Returns a new data with seccompProfile set to new value

  50. def withWindowsOptions(value: WindowsSecurityContextOptions): SecurityContext

    Returns a new data with windowsOptions set to new value

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped