version

package
v0.24.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OPAVersion = opaversion.Version

OPAVersion is the canonical version of OPA that is embedded in policy-engine

View Source
var TerraformVersion = tfversion.Version

Terraform holds the embedded version of terraform.

View Source
var (
	// Version is set to the most recent tag at build time
	Version = "unknown-version"
)

Default build-time variables. These values are overridden via ldflags

Functions

func PlainVersion

func PlainVersion() string

Plain version, e.g. "1.2.0" rather than "v1.2.0-dev"

Types

type VersionInfo

type VersionInfo struct {
	// Version is set to the most recent tag at build time
	Version string
	// OPAversion is the canonical version of OPA that is embedded in policy-engine
	OPAVersion string
	// Terraform holds the embedded version of terraform.
	TerraformVersion string
	// Revision is the git commit hash at build time
	Revision string
	// HasChanges reflects whether or not the source tree had changes at build time
	HasChanges bool
}

func GetVersionInfo

func GetVersionInfo() VersionInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL