Class PillarExact

  • All Implemented Interfaces:
    Target<String>

    public class PillarExact
    extends Object
    implements Target<String>
    Matcher based on salt pillar without glob matching
    • Field Detail

      • key

        protected final String key
      • value

        protected final String value
      • delimiter

        protected final char delimiter
      • target

        protected final T target
    • Constructor Detail

      • PillarExact

        public PillarExact​(String target)
        Creates a pillar matcher
        Parameters:
        target - the targeting expression
      • PillarExact

        public PillarExact​(String target,
                           char delimiter)
        Creates a pillar matcher
        Parameters:
        target - the targeting expression
        delimiter - the character to delimit nesting in the grain name
      • PillarExact

        public PillarExact​(String pillar,
                           String value)
        Creates a pillar matcher
        Parameters:
        pillar - the pillar name
        value - the value to match
      • PillarExact

        public PillarExact​(String pillar,
                           String value,
                           char delimiter)
        Creates a pillar matcher
        Parameters:
        pillar - the pillar name
        value - the value to match
        delimiter - the character to delimit nesting in the pillar name
    • Method Detail

      • 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()
        Returns:
        a map of items to include in the API call payload This will include the 'delimiter' key if not using the default delimiter.
      • getTarget

        public T getTarget()