Packages

final case class SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Long] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Long] = 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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SecurityContext
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Long] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Long] = 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( ... ) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def mapAllowPrivilegeEscalation(f: (Boolean) ⇒ Boolean): SecurityContext

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

  12. def mapCapabilities(f: (Capabilities) ⇒ Capabilities): SecurityContext

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

  13. def mapPrivileged(f: (Boolean) ⇒ Boolean): SecurityContext

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

  14. def mapProcMount(f: (String) ⇒ String): SecurityContext

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

  15. def mapReadOnlyRootFilesystem(f: (Boolean) ⇒ Boolean): SecurityContext

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

  16. def mapRunAsGroup(f: (Long) ⇒ Long): SecurityContext

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

  17. def mapRunAsNonRoot(f: (Boolean) ⇒ Boolean): SecurityContext

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

  18. def mapRunAsUser(f: (Long) ⇒ Long): SecurityContext

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

  19. def mapSeLinuxOptions(f: (SELinuxOptions) ⇒ SELinuxOptions): SecurityContext

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

  20. def mapSeccompProfile(f: (SeccompProfile) ⇒ SeccompProfile): SecurityContext

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

  21. def mapWindowsOptions(f: (WindowsSecurityContextOptions) ⇒ WindowsSecurityContextOptions): SecurityContext

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

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

    Returns a new data with allowPrivilegeEscalation set to new value

  39. def withCapabilities(value: Capabilities): SecurityContext

    Returns a new data with capabilities set to new value

  40. def withPrivileged(value: Boolean): SecurityContext

    Returns a new data with privileged set to new value

  41. def withProcMount(value: String): SecurityContext

    Returns a new data with procMount set to new value

  42. def withReadOnlyRootFilesystem(value: Boolean): SecurityContext

    Returns a new data with readOnlyRootFilesystem set to new value

  43. def withRunAsGroup(value: Long): SecurityContext

    Returns a new data with runAsGroup set to new value

  44. def withRunAsNonRoot(value: Boolean): SecurityContext

    Returns a new data with runAsNonRoot set to new value

  45. def withRunAsUser(value: Long): SecurityContext

    Returns a new data with runAsUser set to new value

  46. def withSeLinuxOptions(value: SELinuxOptions): SecurityContext

    Returns a new data with seLinuxOptions set to new value

  47. def withSeccompProfile(value: SeccompProfile): SecurityContext

    Returns a new data with seccompProfile set to new value

  48. def withWindowsOptions(value: WindowsSecurityContextOptions): SecurityContext

    Returns a new data with windowsOptions set to new value

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped