Class Match


  • public class Match
    extends java.lang.Object
    salt.modules.match
    • Constructor Summary

      Constructors 
      Constructor Description
      Match()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LocalCall<java.lang.Boolean> compound​(java.lang.String tgt)
      Return True if it matches the given compound target
      static LocalCall<java.lang.Boolean> compound​(java.lang.String tgt, java.util.Optional<java.lang.String> minionId)
      Return True if the minion ID matches the given compound target
      static LocalCall<java.lang.Boolean> data​(java.lang.String tgt)
      Return True if the minion matches the given data target
      static LocalCall<java.lang.Boolean> glob​(java.lang.String tgt)
      Return True if it matches the given glob target
      static LocalCall<java.lang.Boolean> glob​(java.lang.String tgt, java.util.Optional<java.lang.String> minionId)
      Return True if the minion ID matches the given glob target
      static LocalCall<java.lang.Boolean> grain​(java.lang.String tgt, java.util.Optional<java.lang.String> delimiter)
      Return True if the minion matches the given grain target.
      static LocalCall<java.lang.Boolean> list​(java.lang.String... tgt)
      Return True if it matches the given list target
      static LocalCall<java.lang.Boolean> list​(java.util.List<java.lang.String> tgt, java.util.Optional<java.lang.String> minionId)
      Return True if the minion ID matches the given list target
      static LocalCall<java.lang.Boolean> pillar​(java.lang.String tgt, java.util.Optional<java.lang.String> delimiter)
      Return True if the minion matches the given pillar target.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Match

        public Match()
    • Method Detail

      • compound

        public static LocalCall<java.lang.Boolean> compound​(java.lang.String tgt,
                                                            java.util.Optional<java.lang.String> minionId)
        Return True if the minion ID matches the given compound target
        Parameters:
        tgt - pillar target
        minionId - optional id of the minion
        Returns:
        the LocalCall object to make the call
      • compound

        public static LocalCall<java.lang.Boolean> compound​(java.lang.String tgt)
        Return True if it matches the given compound target
        Parameters:
        tgt - pillar target
        Returns:
        the LocalCall object to make the call
      • glob

        public static LocalCall<java.lang.Boolean> glob​(java.lang.String tgt,
                                                        java.util.Optional<java.lang.String> minionId)
        Return True if the minion ID matches the given glob target
        Parameters:
        tgt - pillar target
        minionId - optional id of the minion
        Returns:
        the LocalCall object to make the call
      • glob

        public static LocalCall<java.lang.Boolean> glob​(java.lang.String tgt)
        Return True if it matches the given glob target
        Parameters:
        tgt - pillar target
        Returns:
        the LocalCall object to make the call
      • grain

        public static LocalCall<java.lang.Boolean> grain​(java.lang.String tgt,
                                                         java.util.Optional<java.lang.String> delimiter)
        Return True if the minion matches the given grain target. The delimiter argument can be used to specify a different delimiter.
        Parameters:
        tgt - pillar target
        delimiter - optional different delimiter
        Returns:
        the LocalCall object to make the call
      • pillar

        public static LocalCall<java.lang.Boolean> pillar​(java.lang.String tgt,
                                                          java.util.Optional<java.lang.String> delimiter)
        Return True if the minion matches the given pillar target. The delimiter argument can be used to specify a different delimiter.
        Parameters:
        tgt - pillar target
        delimiter - optional different delimiter
        Returns:
        the LocalCall object to make the call
      • data

        public static LocalCall<java.lang.Boolean> data​(java.lang.String tgt)
        Return True if the minion matches the given data target
        Parameters:
        tgt - pillar target
        Returns:
        the LocalCall object to make the call
      • list

        public static LocalCall<java.lang.Boolean> list​(java.util.List<java.lang.String> tgt,
                                                        java.util.Optional<java.lang.String> minionId)
        Return True if the minion ID matches the given list target
        Parameters:
        tgt - pillar target
        minionId - optional id of the minion
        Returns:
        the LocalCall object to make the call
      • list

        public static LocalCall<java.lang.Boolean> list​(java.lang.String... tgt)
        Return True if it matches the given list target
        Parameters:
        tgt - pillar target
        Returns:
        the LocalCall object to make the call