version

package
v0.0.13-dev Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClientName identifies this binary in structured control-plane metadata.
	ClientName = "oai-tunnel-client"

	// FlavorFull is the default build flavor for the existing complete client.
	FlavorFull = "full"
	// FlavorRuntime identifies the narrow runtime artifact without cloudflared.
	FlavorRuntime = "runtime"
	// FlavorRuntimeCloudflared identifies the narrow runtime artifact with the
	// approved bundled cloudflared supervisor.
	FlavorRuntimeCloudflared = "runtime-cloudflared"
)

Variables

View Source
var (
	// GitSHA is populated at build time via ldflags or static Go build metadata.
	// Runtime artifacts never discover it from the checkout or start git.
	GitSHA = ""
	// GoVersion is populated at build time via ldflags. When a caller does not
	// inject it, the compiled runtime version is used without starting another
	// process.
	GoVersion = ""
	// BuildFlags is populated at build time via ldflags for release artifact
	// receipts, for example "-trimpath -buildvcs=false".
	BuildFlags = ""
	// Flavor is populated at build time via ldflags. Existing full-client
	// builds default to FlavorFull; runtime entrypoints link one of the narrow
	// runtime flavor constants.
	Flavor = FlavorFull
	// SemanticVersion exposes the release version without build metadata.
	SemanticVersion = semanticVersion
	// Version exposes the semver plus build metadata when available.
	Version = semanticVersion
	// UserAgent identifies the tunnel client in outbound HTTP requests.
	UserAgent = userAgentPrefix + semanticVersion
)

Functions

This section is empty.

Types

type BuildMetadata added in v0.0.12

type BuildMetadata struct {
	SemanticVersion string
	Version         string
	GitSHA          string
	GoVersion       string
	BuildFlags      string
	Flavor          string
}

BuildMetadata is the static identity linked into a tunnel-client artifact. Runtime entrypoints expose these values through their --version output.

func CurrentBuildMetadata added in v0.0.12

func CurrentBuildMetadata() BuildMetadata

CurrentBuildMetadata returns the artifact identity without starting subprocesses.

Jump to

Keyboard shortcuts

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