package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Apr 2, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
readfile
The readfile
predicate reads and parse the value of file.
Options
Option |
Required |
Description |
json |
|
Path to a JSON file |
yaml |
|
Path to a YAML file |
One of json
or yaml
must be present.
Results
Field |
Type |
Description |
result |
boolean |
true if file was read |
content |
according to file content |
The parsed content of the file |
Documentation
¶
New returns a new Predicate
type Predicate struct {
}
Predicate is the conf.Plugin interface that describes the predicate
Call evaluates the predicate
Name returns the name of the predicate
func (predicate *Predicate) Params() interface{}
Params returns a reference to the params struct of the predicate
Result returns data set by the predicate
Source Files
¶
Click to show internal directories.
Click to hide internal directories.