version

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

	// WireProtocolHeaderName carries the dated tunnel-client/control-plane wire
	// contract supported by this binary. It is distinct from both the binary
	// release version and MCP's per-request protocol version.
	WireProtocolHeaderName = "X-Tunnel-Client-Wire-Protocol-Version"
	// WireProtocolVersion is the current dated tunnel-client/control-plane wire
	// contract. Missing headers identify legacy clients; future versions use
	// the same YYYY-MM-DD shape as MCP protocol versions.
	WireProtocolVersion = "2026-08-25"

	// 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.
	// Builds never discover it from checkout files at runtime.
	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