Class DictionaryTarget

java.lang.Object
com.suse.salt.netapi.datatypes.target.AbstractTarget<String>
com.suse.salt.netapi.datatypes.target.DictionaryTarget
Direct Known Subclasses:
Grains, GrainsRegEx, Pillar, PillarExact, PillarRegEx

abstract class DictionaryTarget extends AbstractTarget<String>
Base class for all grain and pillar target types
  • Field Details

    • DEFAULT_DELIMITER

      public static final char DEFAULT_DELIMITER
      See Also:
    • key

      protected final String key
    • value

      protected final String value
    • delimiter

      protected final char delimiter
  • Constructor Details

  • Method Details

    • getKey

      public String getKey()
      Returns:
      the grain name of this matcher
    • getValue

      public String getValue()
      Returns:
      the value to match the grain
    • getDelimiter

      public char getDelimiter()
      Returns:
      the delimiter used by this target
    • getProps

      public Map<String,Object> getProps()
      Overrides:
      getProps in class AbstractTarget<String>
      Returns:
      a map of items to include in the API call payload This will include the 'delimiter' key if not using the default delimiter.