Class Match
- java.lang.Object
-
- com.suse.salt.netapi.calls.modules.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 targetstatic 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 targetstatic LocalCall<java.lang.Boolean>
data(java.lang.String tgt)
Return True if the minion matches the given data targetstatic LocalCall<java.lang.Boolean>
glob(java.lang.String tgt)
Return True if it matches the given glob targetstatic 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 targetstatic 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 targetstatic 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 targetstatic 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.
-
-
-
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 targetminionId
- 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 targetminionId
- 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 targetdelimiter
- 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 targetdelimiter
- 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 targetminionId
- optional id of the minion- Returns:
- the
LocalCall
object to make the call
-
-