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.4.2"

Version is the canonical version of OPA.

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.4.2 (latest)
Published
May 2, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
4 hours ago

Tools for package owners.