version

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package version contains version information about rq.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Version represents the canonical version string.
	Version string `json:"version"`

	// GoVersion represents the Go version this binary was created with.
	GoVersion string `json:"go_version"`

	// OS represents the operating system this binary is running on.
	OS string `json:"os"`

	// Architecture represents the CPU architecture this binary was built
	// for.
	Architecture string `json:"architecture"`

	// Timestamp is last modified timestamp for the rq git repository at
	// compile time.
	Timestamp string `json:"timestamp"`

	// Revision is the VCS revision string, typically the commit SHA.
	Revision string `json:"revision"`

	// OPA is the version of the embedded OPA library.
	OPA string `json:"opa"`

	// Modified is true if this binary includes un-committed changes.
	Modified bool `json:"modified"`
}

Info represents all of the information relating to the rq version.

func Version

func Version() Info

Version returns the version information for this rq binary.

Jump to

Keyboard shortcuts

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