v1

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoService

type InfoService struct {
	// contains filtered or unexported fields
}

InfoService represents the v1 wrapper of informer.InfoService and informer.InfoCollector.

func NewInfoService

func NewInfoService(program, license, url, buildUser, buildDate, language, languageVersion,
	version, revision, branch string) *InfoService

NewInfoService returns a new InfoService.

func (*InfoService) BuildInfo

func (s *InfoService) BuildInfo() string

BuildInfo returns build information as a string.

func (*InfoService) Metadata

func (s *InfoService) Metadata() string

Metadata returns metadata as a string.

func (*InfoService) Register

func (s *InfoService) Register() error

Register registers an InfoService collector with Prometheus that exports metrics about InfoService.

func (*InfoService) String

func (s *InfoService) String() string

String returns metadata, build and version information as a string.

func (*InfoService) Unregister

func (s *InfoService) Unregister() bool

Unregister unregisters the InfoService collector with Prometheus. Normally, this would be called in a defer statement.

func (*InfoService) VersionInfo

func (s *InfoService) VersionInfo() string

VersionInfo returns version information as a string.

Jump to

Keyboard shortcuts

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