collector

package
v0.0.0-...-f8da8a4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package collector fetch information needed to render the 'collector' section of the status page. This will, in time, be migrated to the collector package/comp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatusInfo

func GetStatusInfo() map[string]interface{}

GetStatusInfo retrives collector information

func PopulateStatus

func PopulateStatus(stats map[string]interface{})

PopulateStatus populates stats with collector information

Types

type Provider

type Provider struct{}

Provider provides the functionality to populate the status output with the collector information

func (Provider) HTML

func (Provider) HTML(_ bool, buffer io.Writer) error

HTML renders the html output

func (Provider) JSON

func (Provider) JSON(_ bool, stats map[string]interface{}) error

JSON populates the status map

func (Provider) Name

func (Provider) Name() string

Name returns the name

func (Provider) Section

func (Provider) Section() string

Section return the section

func (Provider) Text

func (Provider) Text(_ bool, buffer io.Writer) error

Text renders the text output

func (Provider) TextWithData

func (Provider) TextWithData(buffer io.Writer, data any) error

TextWithData allows to render the human reaadable version with custom data This is a hack only needed for the agent check subcommand

Jump to

Keyboard shortcuts

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