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.
Click to show internal directories.
Click to hide internal directories.