Documentation ¶
Index ¶
- func HumanReadableEvalError(err error) error
- func LoadFilterFile(filePath string) ([]string, error)
- func ParseCommaSeparatedParams(params string) (map[string]string, error)
- func ValueFromJSON(v interface{}) (starlark.Value, error)
- func ValueFromNestedMap(m map[string]interface{}) (starlark.Value, error)
- type StringsFlagValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanReadableEvalError ¶ added in v1.4.3
HumanReadableEvalError takes an error object returned by `starlark.Call` function, convert the error message to include stacktrace. If an error of any other type is passed in, it ignores and return the error object unmodified.
func LoadFilterFile ¶ added in v1.1.0
LoadFilterFile parses a file into an array of non-empty, non-comment lines. If the file does not exist, then os.IsNotExist(err) == true
func ParseCommaSeparatedParams ¶
ParseCommaSeparatedParams slipts params in the form of "foo=bar,baz=qux" in to a map {"foo": "bar", "baz": "qux"}
func ValueFromJSON ¶
ValueFromJSON converts JSON value to starlark.Value.
Types ¶
type StringsFlagValue ¶ added in v1.1.0
type StringsFlagValue []string
func StringsFlag ¶ added in v1.1.0
func StringsFlag(name string, value []string, usage string) *StringsFlagValue
func (*StringsFlagValue) Set ¶ added in v1.1.0
func (s *StringsFlagValue) Set(value string) error
func (*StringsFlagValue) String ¶ added in v1.1.0
func (s *StringsFlagValue) String() string
Click to show internal directories.
Click to hide internal directories.