version

package
v0.0.0-...-37acc3e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Application = "Couchbase Exporter"

Variables

View Source
var (
	Version     string
	BuildNumber string
	Revision    string
)

Functions

func UserAgent

func UserAgent() string

UserAgent is a valid user agent string as defined by the HTTP specification https://tools.ietf.org/html/rfc1945#section-10.15, this is used to identify what unique version of the Exporter has been interacting with Couchbase server.

func WithBuildNumber

func WithBuildNumber() string

This will generate things like "1.0.0 (build 123)" and should be used for binary version strings so we can tell exactly which build (and by extension commit) is being used.

func WithBuildNumberAndRevision

func WithBuildNumberAndRevision() string

WithBuildNumberAndRevision gives full debug information, used primarily for CLI commands.

func WithRevision

func WithRevision() string

This will generate things like 1.0.0 and 1.0.0-beta1 and should be used for things like docker images.

Types

This section is empty.

Jump to

Keyboard shortcuts

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