Class SeccompProfile
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.SeccompProfile
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class SeccompProfile extends java.lang.Object implements com.marcnuri.yakc.model.Model
SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SeccompProfile.Builder
-
Constructor Summary
Constructors Constructor Description SeccompProfile()
SeccompProfile(java.lang.String localhostProfile, @NonNull java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SeccompProfile.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getLocalhostProfile()
localhostProfile indicates a profile defined in a file on the node should be used.@NonNull java.lang.String
getType()
type indicates which kind of seccomp profile will be applied.int
hashCode()
void
setLocalhostProfile(java.lang.String localhostProfile)
localhostProfile indicates a profile defined in a file on the node should be used.void
setType(@NonNull java.lang.String type)
type indicates which kind of seccomp profile will be applied.SeccompProfile.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static SeccompProfile.Builder builder()
-
toBuilder
public SeccompProfile.Builder toBuilder()
-
getLocalhostProfile
public java.lang.String getLocalhostProfile()
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
-
getType
@NonNull public @NonNull java.lang.String getType()
type indicates which kind of seccomp profile will be applied. Valid options are:Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
-
setLocalhostProfile
public void setLocalhostProfile(java.lang.String localhostProfile)
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
-
setType
public void setType(@NonNull @NonNull java.lang.String type)
type indicates which kind of seccomp profile will be applied. Valid options are:Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-