Class Match

java.lang.Object
com.suse.salt.netapi.calls.modules.Match

public class Match extends Object
salt.modules.match
  • Constructor Details

    • Match

      public Match()
  • Method Details

    • compound

      public static LocalCall<Boolean> compound(String tgt, Optional<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<Boolean> compound(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<Boolean> glob(String tgt, Optional<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<Boolean> glob(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<Boolean> grain(String tgt, Optional<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<Boolean> pillar(String tgt, Optional<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<Boolean> data(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<Boolean> list(List<String> tgt, Optional<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<Boolean> list(String... tgt)
      Return True if it matches the given list target
      Parameters:
      tgt - pillar target
      Returns:
      the LocalCall object to make the call