buildx

package
v0.0.0-...-421db18 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version    string `json:"version"`
	Revision   string `json:"revision"`
	Branch     string `json:"branch"`
	Prerelease string `json:"prerelease"`
	IsSnapshot string `json:"is_snapshot"`
	BuildUser  string `json:"build_user"`
	BuildDate  string `json:"build_date"`
	GoVersion  string `json:"go_version"`
	Os         string `json:"os"`
	Arch       string `json:"arch"`
	Compiler   string `json:"compiler"`
}

Info represents all available build information.

func NewInfo

func NewInfo(
	version string,
	revision string,
	branch string,
	pre string,
	snap string,
	buildUser string,
	buildDate string,
) Info

NewInfo returns all available build information.

func (Info) Fields

func (i Info) Fields() []interface{}

func (Info) HTTPHandler

func (i Info) HTTPHandler() http.Handler

func (Info) OpenCensusFields

func (i Info) OpenCensusFields() []jaeger.Tag

func (Info) OpenTelemetryFields

func (i Info) OpenTelemetryFields() []kv.KeyValue

func (Info) OpenTracingFields

func (i Info) OpenTracingFields() []opentracing.Tag

Jump to

Keyboard shortcuts

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