Package org.openrewrite.kubernetes.tree
Interface K8S
-
- All Superinterfaces:
org.openrewrite.marker.Marker,org.openrewrite.Tree
- All Known Implementing Classes:
K8S.Annotations,K8S.Containers,K8S.InitContainers,K8S.Labels,K8S.Metadata,K8S.Pod,K8S.Resource,K8S.ResourceLimits,K8S.Service
public interface K8S extends org.openrewrite.marker.Marker
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classK8S.Annotationsstatic classK8S.Containersstatic classK8S.InitContainersstatic classK8S.Labelsstatic classK8S.Metadatastatic classK8S.Podstatic classK8S.Resourcestatic classK8S.ResourceLimitsstatic classK8S.Service
-
Method Summary
Static Methods Modifier and Type Method Description static K8S.AnnotationsasAnnotations(org.openrewrite.yaml.tree.Yaml.Mapping m)static K8S.LabelsasLabels(org.openrewrite.yaml.tree.Yaml.Mapping m)static K8S.ResourceasResource(org.openrewrite.yaml.tree.Yaml.Mapping m)static K8S.ResourceLimitsasResourceLimits(org.openrewrite.yaml.tree.Yaml.Scalar s)static @Nullable K8S.ServiceasService(org.openrewrite.yaml.tree.Yaml.Mapping m)static java.util.Optional<org.openrewrite.Cursor>firstEnclosingEntryMatching(java.lang.String xpath, @Nullable org.openrewrite.Cursor cursor)static java.util.Optional<org.openrewrite.Cursor>firstEnclosingEntryMatching(org.openrewrite.yaml.XPathMatcher xpath, @Nullable org.openrewrite.Cursor cursor)static booleaninDaemonSet(org.openrewrite.Cursor cursor)static booleaninDeployment(org.openrewrite.Cursor cursor)static booleaninKind(java.lang.String kind, org.openrewrite.Cursor cursor)static booleaninMappingEntry(java.lang.String xpath, @Nullable org.openrewrite.Cursor cursor)static booleaninMappingEntry(org.openrewrite.yaml.XPathMatcher xpath, @Nullable org.openrewrite.Cursor cursor)static booleaninPod(org.openrewrite.Cursor cursor)static booleaninService(org.openrewrite.Cursor cursor)static booleaninStatefulSet(org.openrewrite.Cursor cursor)
-
-
-
Method Detail
-
inKind
static boolean inKind(java.lang.String kind, org.openrewrite.Cursor cursor)
-
inPod
static boolean inPod(org.openrewrite.Cursor cursor)
-
inDaemonSet
static boolean inDaemonSet(org.openrewrite.Cursor cursor)
-
inStatefulSet
static boolean inStatefulSet(org.openrewrite.Cursor cursor)
-
inDeployment
static boolean inDeployment(org.openrewrite.Cursor cursor)
-
inService
static boolean inService(org.openrewrite.Cursor cursor)
-
asResource
static K8S.Resource asResource(org.openrewrite.yaml.tree.Yaml.Mapping m)
-
asAnnotations
static K8S.Annotations asAnnotations(@Nullable org.openrewrite.yaml.tree.Yaml.Mapping m)
-
asLabels
static K8S.Labels asLabels(@Nullable org.openrewrite.yaml.tree.Yaml.Mapping m)
-
asResourceLimits
static K8S.ResourceLimits asResourceLimits(@Nullable org.openrewrite.yaml.tree.Yaml.Scalar s)
-
asService
@Nullable static @Nullable K8S.Service asService(@Nullable org.openrewrite.yaml.tree.Yaml.Mapping m)
-
inMappingEntry
static boolean inMappingEntry(java.lang.String xpath, @Nullable @Nullable org.openrewrite.Cursor cursor)
-
inMappingEntry
static boolean inMappingEntry(org.openrewrite.yaml.XPathMatcher xpath, @Nullable @Nullable org.openrewrite.Cursor cursor)
-
firstEnclosingEntryMatching
static java.util.Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching(java.lang.String xpath, @Nullable @Nullable org.openrewrite.Cursor cursor)
-
firstEnclosingEntryMatching
static java.util.Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching(org.openrewrite.yaml.XPathMatcher xpath, @Nullable @Nullable org.openrewrite.Cursor cursor)
-
-