statusinterface

package module
v0.54.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 0 Imported by: 3

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 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