resourcefilter

package
v0.0.0-...-8c39dc6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ident

func Ident(name string) *expr.Expr

func In

func In(lhs *expr.Expr, listExpr *expr.Expr_ListExpr) *expr.Expr

func Or

func Or(lhs *expr.Expr, rhs *expr.Expr) *expr.Expr

func Select

func Select(operand *expr.Expr, field string) *expr.Expr

func String

func String(s string) *expr.Expr

func Strings

func Strings(ss ...string) *expr.Expr_ListExpr

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func (*Filter) SpannerSQL

func (r *Filter) SpannerSQL() (spansql.BoolExpr, error)

func (*Filter) Test

func (r *Filter) Test(resource proto.Message) bool

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func NewResource

func NewResource(resourceName string, resource proto.Message) (*Resource, error)

func (*Resource) CompileFilter

func (r *Resource) CompileFilter(filter string) (*Filter, error)

Jump to

Keyboard shortcuts

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