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 ¶
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
Click to show internal directories.
Click to hide internal directories.