Interface K8S

    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static K8S.Annotations asAnnotations​(org.openrewrite.yaml.tree.Yaml.Mapping m)  
      static K8S.Labels asLabels​(org.openrewrite.yaml.tree.Yaml.Mapping m)  
      static K8S.Metadata asMetadata​(org.openrewrite.yaml.tree.Yaml.Mapping m)  
      static K8S.Resource asResource​(org.openrewrite.yaml.tree.Yaml.Mapping m)  
      static K8S.ResourceLimits asResourceLimits​(org.openrewrite.yaml.tree.Yaml.Scalar s)  
      static @Nullable K8S.Service asService​(org.openrewrite.yaml.tree.Yaml.Mapping m)  
      static java.util.Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching​(java.lang.String jsonPath, @Nullable org.openrewrite.Cursor cursor)  
      static java.util.Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching​(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable org.openrewrite.Cursor cursor)  
      static boolean inDaemonSet​(org.openrewrite.Cursor cursor)  
      static boolean inDeployment​(org.openrewrite.Cursor cursor)  
      static boolean inKind​(java.lang.String kind, org.openrewrite.Cursor cursor)  
      static boolean inMappingEntry​(java.lang.String jsonPath, @Nullable org.openrewrite.Cursor cursor)  
      static boolean inMappingEntry​(org.openrewrite.yaml.JsonPathMatcher jsonPath, @Nullable org.openrewrite.Cursor cursor)  
      static boolean inPod​(org.openrewrite.Cursor cursor)  
      static boolean inService​(org.openrewrite.Cursor cursor)  
      static boolean inStatefulSet​(org.openrewrite.Cursor cursor)  
      • Methods inherited from interface org.openrewrite.marker.Marker

        isAcceptable
      • Methods inherited from interface org.openrewrite.Tree

        accept, getId, getJacksonPolymorphicTypeTag, isScope, print, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed, withId
    • 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)
      • asMetadata

        static K8S.Metadata asMetadata​(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 jsonPath,
                                      @Nullable
                                      @Nullable org.openrewrite.Cursor cursor)
      • inMappingEntry

        static boolean inMappingEntry​(org.openrewrite.yaml.JsonPathMatcher jsonPath,
                                      @Nullable
                                      @Nullable org.openrewrite.Cursor cursor)
      • firstEnclosingEntryMatching

        static java.util.Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching​(java.lang.String jsonPath,
                                                                                      @Nullable
                                                                                      @Nullable org.openrewrite.Cursor cursor)
      • firstEnclosingEntryMatching

        static java.util.Optional<org.openrewrite.Cursor> firstEnclosingEntryMatching​(org.openrewrite.yaml.JsonPathMatcher jsonPath,
                                                                                      @Nullable
                                                                                      @Nullable org.openrewrite.Cursor cursor)