vm

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthVM

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

func NewAuthVM

func NewAuthVM() (*AuthVM, error)

func (*AuthVM) Eval

func (n *AuthVM) Eval(req *apipb.Request, programs ...cel.Program) (bool, error)

func (*AuthVM) Program

func (n *AuthVM) Program(expression string) (cel.Program, error)

func (*AuthVM) Programs

func (n *AuthVM) Programs(expressions []string) ([]cel.Program, error)

type ConnectionVM

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

func NewConnectionVM

func NewConnectionVM() (*ConnectionVM, error)

func (*ConnectionVM) Eval

func (n *ConnectionVM) Eval(connection *apipb.Connection, programs ...cel.Program) (bool, error)

func (*ConnectionVM) Program

func (n *ConnectionVM) Program(expression string) (cel.Program, error)

func (*ConnectionVM) Programs

func (n *ConnectionVM) Programs(expressions []string) ([]cel.Program, error)

type DocVM

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

func NewDocVM

func NewDocVM() (*DocVM, error)

func (*DocVM) Eval

func (n *DocVM) Eval(doc *apipb.Doc, programs ...cel.Program) (bool, error)

func (*DocVM) Program

func (n *DocVM) Program(expression string) (cel.Program, error)

func (*DocVM) Programs

func (n *DocVM) Programs(expressions []string) ([]cel.Program, error)

type MessageVM

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

func NewMessageVM

func NewMessageVM() (*MessageVM, error)

func (*MessageVM) Eval

func (n *MessageVM) Eval(message *apipb.Message, programs ...cel.Program) (bool, error)

func (*MessageVM) Program

func (n *MessageVM) Program(expression string) (cel.Program, error)

func (*MessageVM) Programs

func (n *MessageVM) Programs(expressions []string) ([]cel.Program, error)

type VM

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

func NewVM

func NewVM() (*VM, error)

func (*VM) Auth

func (v *VM) Auth() *AuthVM

func (*VM) Connection

func (v *VM) Connection() *ConnectionVM

func (*VM) Doc

func (v *VM) Doc() *DocVM

func (*VM) Message

func (v *VM) Message() *MessageVM

Jump to

Keyboard shortcuts

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