statusinterface

package module
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 0 Imported by: 5 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package statusinterface describes status methods required in logs agent modules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status interface {
	// AddGlobalWarning keeps track of a warning message to display on the status.
	AddGlobalWarning(key string, warning string)

	// RemoveGlobalWarning loses track of a warning message
	// that does not need to be displayed on the status anymore.
	RemoveGlobalWarning(key string)
}

Status is the type for status methods

func NewNoopStatusProvider added in v0.63.0

func NewNoopStatusProvider() Status

NewNoopStatusProvider returns a mock instance of statusinterface to be used in tests

func NewStatusProviderMock

func NewStatusProviderMock() Status

NewStatusProviderMock returns a mock instance of statusinterface to be used in tests

Jump to

Keyboard shortcuts

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