stub

package
v0.0.0-...-dbadf91 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StubCheck

type StubCheck struct{}

StubCheck stubs a check, should only be used in tests

func (*StubCheck) Cancel

func (c *StubCheck) Cancel()

Cancel is a noop

func (*StubCheck) ConfigSource

func (c *StubCheck) ConfigSource() string

ConfigSource returns the empty string

func (*StubCheck) Configure

Configure is a noop

func (*StubCheck) GetDiagnoses

func (c *StubCheck) GetDiagnoses() ([]diagnosis.Diagnosis, error)

GetDiagnoses returns the diagnoses of the check

func (*StubCheck) GetSenderStats

func (c *StubCheck) GetSenderStats() (stats.SenderStats, error)

GetSenderStats returns an empty map

func (*StubCheck) GetWarnings

func (c *StubCheck) GetWarnings() []error

GetWarnings returns an empty slice

func (*StubCheck) ID

func (c *StubCheck) ID() checkid.ID

ID returns the check name

func (*StubCheck) InitConfig

func (c *StubCheck) InitConfig() string

InitConfig returns the init_config configuration of the check

func (*StubCheck) InstanceConfig

func (c *StubCheck) InstanceConfig() string

InstanceConfig returns the instance configuration of the check

func (*StubCheck) Interval

func (c *StubCheck) Interval() time.Duration

Interval returns a duration of one second

func (*StubCheck) IsTelemetryEnabled

func (c *StubCheck) IsTelemetryEnabled() bool

IsTelemetryEnabled returns false

func (*StubCheck) Run

func (c *StubCheck) Run() error

Run is a noop

func (*StubCheck) Stop

func (c *StubCheck) Stop()

Stop is a noop

func (*StubCheck) String

func (c *StubCheck) String() string

String provides a printable version of the check name

func (*StubCheck) Version

func (c *StubCheck) Version() string

Version returns the empty string

Jump to

Keyboard shortcuts

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