Documentation
¶
Index ¶
- func GetFact(fact string, file string, log *logrus.Entry) ([]byte, gjson.Result, error)
- func HasFact(fact string, operator string, value string, file string, log *logrus.Entry) (bool, error)
- func JSON(file string, log *logrus.Entry) (json.RawMessage, error)
- func Match(filters [][3]string, fw *choria.Framework, log *logrus.Entry) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFact ¶
GetFact looks up a single fact from the facts file, errors reading the file is reported but an absent fact is handled as empty result and no error
func HasFact ¶
func HasFact(fact string, operator string, value string, file string, log *logrus.Entry) (bool, error)
HasFact evaluates the expression against facts in the file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.