buildinfo

package
v0.0.0-...-366ddcd Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package buildinfo implements encoding and decoding of build metadata injected into binaries via the jiri tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	// Manifest records the project manifest that identifies the state of Vanadium
	// projects used for the build.
	Manifest project.Manifest
	// Platform records the target platform of the build.
	Platform string
	// Pristine records whether the build was executed using pristine master
	// branches of Vanadium projects (or not).
	Pristine bool
	// Time records the time of the build.
	Time time.Time
	// User records the name of user who executed the build.
	User string
}

T describes build related metadata.

func FromMetaData

func FromMetaData(md *metadata.T) (T, error)

FromMetaData decodes metadata md and returns the build info.

func (T) ToMetaData

func (t T) ToMetaData() (*metadata.T, error)

ToMetaData encodes build info t into metadata md.

Jump to

Keyboard shortcuts

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