opa: github.com/open-policy-agent/opa/internal/version Index | Files

package version

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

Package version implements helper functions for the stored version.

Index

Package Files

version.go

Variables

var UserAgent = fmt.Sprintf("Open Policy Agent/%s (%s, %s)", version.Version, runtime.GOOS, runtime.GOARCH)

UserAgent defines the current OPA instances User-Agent default header value.

func Write Uses

func Write(ctx context.Context, store storage.Store, txn storage.Transaction) error

Write the build version information into storage. This makes the version information available to the REPL and the HTTP server.

Package version imports 5 packages (graph) and is imported by 6 packages. Updated 2019-08-27. Refresh now. Tools for package owners.