version

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKitVersion

func BuildKitVersion() string

BuildKitVersion returns the linked BuildKit version from build info.

func GoVersion

func GoVersion() string

GoVersion returns the Go toolchain version used for the build.

func RawVersion

func RawVersion() string

RawVersion returns the semantic version string without any suffix.

func Version

func Version() string

Version returns the current version string with BuildKit suffix.

Types

type Info

type Info struct {
	Version         string   `json:"version"`
	BuildkitVersion string   `json:"buildkitVersion,omitempty"`
	Platform        Platform `json:"platform"`
	GoVersion       string   `json:"goVersion"`
	GitCommit       string   `json:"gitCommit,omitempty"`
}

Info holds structured version information for machine-readable output.

func GetInfo

func GetInfo() Info

GetInfo returns structured version information.

type Platform

type Platform struct {
	OS   string `json:"os"`
	Arch string `json:"arch"`
}

Platform describes the OS and architecture.

Jump to

Keyboard shortcuts

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