@Generated(value="org.jsonschema2pojo") public class SecurityContext extends Object
Constructor and Description |
---|
SecurityContext()
No args constructor for use in serialization
|
SecurityContext(Capabilities capabilities,
Boolean privileged,
Boolean runAsNonRoot,
Long runAsUser,
SELinuxOptions seLinuxOptions) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
Capabilities |
getCapabilities() |
Boolean |
getPrivileged()
run the container in privileged mode; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context
|
Boolean |
getRunAsNonRoot()
indicates the container must be run as a non-root user either by specifying the runAsUser or in the image specification
|
Long |
getRunAsUser()
the user id that runs the first process in the container; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context
|
SELinuxOptions |
getSeLinuxOptions() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setCapabilities(Capabilities capabilities) |
void |
setPrivileged(Boolean privileged)
run the container in privileged mode; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context
|
void |
setRunAsNonRoot(Boolean runAsNonRoot)
indicates the container must be run as a non-root user either by specifying the runAsUser or in the image specification
|
void |
setRunAsUser(Long runAsUser)
the user id that runs the first process in the container; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context
|
void |
setSeLinuxOptions(SELinuxOptions seLinuxOptions) |
public SecurityContext()
public SecurityContext(Capabilities capabilities, Boolean privileged, Boolean runAsNonRoot, Long runAsUser, SELinuxOptions seLinuxOptions)
seLinuxOptions
- runAsNonRoot
- privileged
- capabilities
- runAsUser
- public Capabilities getCapabilities()
public void setCapabilities(Capabilities capabilities)
capabilities
- The capabilitiespublic Boolean getPrivileged()
public void setPrivileged(Boolean privileged)
privileged
- The privilegedpublic Boolean getRunAsNonRoot()
public void setRunAsNonRoot(Boolean runAsNonRoot)
runAsNonRoot
- The runAsNonRootpublic Long getRunAsUser()
public void setRunAsUser(Long runAsUser)
runAsUser
- The runAsUserpublic SELinuxOptions getSeLinuxOptions()
public void setSeLinuxOptions(SELinuxOptions seLinuxOptions)
seLinuxOptions
- The seLinuxOptionsCopyright © 2011–2015 Red Hat. All rights reserved.