Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "" Commit = "" Timestamp = "" Hostname = "" )
Values injected at build time using -ldflags.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
GoVersion string `json:"go_version"`
OPAVersion string `json:"opa_version"`
Platform string `json:"platform"`
Commit string `json:"commit"`
Timestamp string `json:"timestamp"`
Hostname string `json:"hostname"`
}
Info wraps the various version metadata values and provides a means of marshalling as JSON or pretty string.
Click to show internal directories.
Click to hide internal directories.