reportsha

package
Version: v2.5.2-0...-f3a5e34 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SHA1Reporter

type SHA1Reporter struct {
	RepoURL  string
	FileName string
	Logger   log.Logger
	Fi       fileInfo
	// contains filtered or unexported fields
}

SHA1Reporter reports a gauge to Client that is the commit SHA1 of the current image

func (*SHA1Reporter) Datapoints

func (s *SHA1Reporter) Datapoints() []*datapoint.Datapoint

Datapoints returns a single datapoint that includes the commit sha loaded from a config file

func (*SHA1Reporter) Var

func (s *SHA1Reporter) Var() expvar.Var

Var returns an expvar that is the build file info

Source Files

Jump to

Keyboard shortcuts

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