package version

import "github.com/open-policy-agent/opa/v1/version"

Package version contains version information that is set at build time.

Index

Variables

var (
	Vcs       = ""
	Timestamp = ""
	Hostname  = ""
)

Additional version information that is displayed by the "version" command and used to identify the version of running instances of OPA.

var GoVersion = runtime.Version()

GoVersion is the version of Go this was built with

var Platform = runtime.GOOS + "/" + runtime.GOARCH

Platform is the runtime OS and architecture of this OPA binary

var Version = "1.5.1"

Functions

func WasmRuntimeAvailable

func WasmRuntimeAvailable() bool

WasmRuntimeAvailable indicates if a wasm runtime is available in this OPA.

Source Files

version.go wasm.go

Version
v1.5.1 (latest)
Published
Jun 4, 2025
Platform
js/wasm
Imports
3 packages
Last checked
1 day ago

Tools for package owners.