version

package
Version: v0.0.0-...-5253b6b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version provides utilities for reporting build information (including version, build id, and status) for mixer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	// Version is the tagged build version taken from SCM information.
	// Typically, this is from a `git describe` command.
	Version string

	// ID is a generated build ID. For mixer, by convention, we use:
	// YYYY-MM-DD-SHA, where SHA is the short SHA extracted from SCM
	// (typically, `git rev-parse --short HEAD`).
	ID string

	// Status is used to indicate if the build was done against a clean
	// checkout at the ID specified, or if there were local file
	// modifications. Typically, this should either be `Clean` or `Modified`.
	Status string
}

BuildInfo holds build-related information for Mixer.

var Info BuildInfo

Info is used to export the build info values set at runtime via `-ldflags`.

func (BuildInfo) String

func (b BuildInfo) String() string

Source Files

Jump to

Keyboard shortcuts

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