opa: github.com/open-policy-agent/opa/internal/compiler/wasm Index | Files | Directories

package wasm

import "github.com/open-policy-agent/opa/internal/compiler/wasm"

Package wasm contains an IR->WASM compiler backend.

Index

Package Files

wasm.go

type Compiler Uses

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

Compiler implements an IR->WASM compiler backend.

func New Uses

func New() *Compiler

New returns a new compiler object.

func (*Compiler) Compile Uses

func (c *Compiler) Compile() (*module.Module, error)

Compile returns a compiled WASM module.

func (*Compiler) WithPolicy Uses

func (c *Compiler) WithPolicy(p *ir.Policy) *Compiler

WithPolicy sets the policy to compile.

Directories

PathSynopsis
opaPackage opa contains bytecode for the OPA-WASM library.

Package wasm imports 9 packages (graph) and is imported by 2 packages. Updated 2019-11-18. Refresh now. Tools for package owners.