version

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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