parser

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

package parser provides methods to parse filter sources to CEL-based ASTs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(source common.Source) (*expr.ParsedExpr, *common.Errors)

Parse a filter source into an abstract CEL-based representation.

The `Parse` method expects single `Source` value whose content will be parsed into a CEL representation that models the capabilities of the list filtering syntax supported by Google Cloud Logging's [Advanced Filters](https://cloud.google.com/logging/docs/view/advanced-filters)

If the parse is not successful a `common.Errors` value is returned as the second result.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL