package wasm

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

Package wasm contains an IR->WASM compiler backend.

Index

Types

type Compiler

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

Compiler implements an IR->WASM compiler backend.

func New

func New() *Compiler

New returns a new compiler object.

func (*Compiler) Compile

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

Compile returns a compiled WASM module.

func (*Compiler) WithPolicy

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

WithPolicy sets the policy to compile.

Source Files

wasm.go

Directories

PathSynopsis
internal/compiler/wasm/opaPackage opa contains bytecode for the OPA-WASM library.
Version
v0.20.2
Published
May 21, 2020
Platform
darwin/amd64
Imports
9 packages
Last checked
42 minutes ago

Tools for package owners.