Class Match
- java.lang.Object
-
- com.suse.salt.netapi.calls.modules.Match
-
public class Match extends 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<Boolean>
compound(String tgt)
Return True if it matches the given compound targetstatic LocalCall<Boolean>
compound(String tgt, Optional<String> minionId)
Return True if the minion ID matches the given compound targetstatic LocalCall<Boolean>
data(String tgt)
Return True if the minion matches the given data targetstatic LocalCall<Boolean>
glob(String tgt)
Return True if it matches the given glob targetstatic LocalCall<Boolean>
glob(String tgt, Optional<String> minionId)
Return True if the minion ID matches the given glob targetstatic LocalCall<Boolean>
grain(String tgt, Optional<String> delimiter)
Return True if the minion matches the given grain target.static LocalCall<Boolean>
list(String... tgt)
Return True if it matches the given list targetstatic LocalCall<Boolean>
list(List<String> tgt, Optional<String> minionId)
Return True if the minion ID matches the given list targetstatic LocalCall<Boolean>
pillar(String tgt, Optional<String> delimiter)
Return True if the minion matches the given pillar target.
-
-
-
Method Detail
-
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 targetminionId
- 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 targetminionId
- 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 targetdelimiter
- 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 targetdelimiter
- 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 targetminionId
- optional id of the minion- Returns:
- the
LocalCall
object to make the call
-
-