helper_test

package
v0.13.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerMock

type LoggerMock struct {
	Logging []string
	T       *testing.T
}

LoggerMock ...

func NewLoggerMock

func NewLoggerMock(t *testing.T) *LoggerMock

NewLoggerMock ...

func (*LoggerMock) CompareLogging

func (l *LoggerMock) CompareLogging(expected string)

CompareLogging ...

func (*LoggerMock) CompareLoggingID added in v0.13.0

func (l *LoggerMock) CompareLoggingID(id string, expected string)

CompareLoggingID ...

func (*LoggerMock) Error

func (l *LoggerMock) Error(msg string, args ...interface{})

Error ...

func (*LoggerMock) Fatal

func (l *LoggerMock) Fatal(msg string, args ...interface{})

Fatal ...

func (*LoggerMock) Info

func (l *LoggerMock) Info(msg string, args ...interface{})

Info ...

func (*LoggerMock) InfoV

func (l *LoggerMock) InfoV(v int, msg string, args ...interface{})

InfoV ...

func (*LoggerMock) Warn

func (l *LoggerMock) Warn(msg string, args ...interface{})

Warn ...

type MetricsMock added in v0.10.1

type MetricsMock struct {
	Logging []string
	T       *testing.T
}

MetricsMock ...

func NewMetricsMock added in v0.10.1

func NewMetricsMock() *MetricsMock

NewMetricsMock ...

func (*MetricsMock) AddIdleFactor added in v0.10.1

func (m *MetricsMock) AddIdleFactor(idle int)

AddIdleFactor ...

func (*MetricsMock) ClearCertExpire added in v0.11.2

func (m *MetricsMock) ClearCertExpire()

ClearCertExpire ...

func (*MetricsMock) ControllerProcTime added in v0.10.1

func (m *MetricsMock) ControllerProcTime(task string, duration time.Duration)

ControllerProcTime ...

func (*MetricsMock) HAProxySetSSLCertResponseTime added in v0.13.0

func (m *MetricsMock) HAProxySetSSLCertResponseTime(duration time.Duration)

HAProxySetSSLCertResponseTime ...

func (*MetricsMock) HAProxySetServerResponseTime added in v0.10.1

func (m *MetricsMock) HAProxySetServerResponseTime(duration time.Duration)

HAProxySetServerResponseTime ...

func (*MetricsMock) HAProxyShowInfoResponseTime added in v0.10.1

func (m *MetricsMock) HAProxyShowInfoResponseTime(duration time.Duration)

HAProxyShowInfoResponseTime ...

func (*MetricsMock) IncCertSigningExpiring added in v0.10.1

func (m *MetricsMock) IncCertSigningExpiring(domains string, success bool)

IncCertSigningExpiring ...

func (*MetricsMock) IncCertSigningMissing added in v0.10.1

func (m *MetricsMock) IncCertSigningMissing(domains string, success bool)

IncCertSigningMissing ...

func (*MetricsMock) IncCertSigningOutdated added in v0.10.1

func (m *MetricsMock) IncCertSigningOutdated(domains string, success bool)

IncCertSigningOutdated ...

func (*MetricsMock) IncUpdateDynamic added in v0.10.1

func (m *MetricsMock) IncUpdateDynamic()

IncUpdateDynamic ...

func (*MetricsMock) IncUpdateFull added in v0.10.1

func (m *MetricsMock) IncUpdateFull()

IncUpdateFull ...

func (*MetricsMock) IncUpdateNoop added in v0.10.1

func (m *MetricsMock) IncUpdateNoop()

IncUpdateNoop ...

func (*MetricsMock) SetCertExpireDate added in v0.10.1

func (m *MetricsMock) SetCertExpireDate(domain, cn string, notAfter *time.Time)

SetCertExpireDate ...

func (*MetricsMock) UpdateSuccessful added in v0.10.1

func (m *MetricsMock) UpdateSuccessful(success bool)

UpdateSuccessful ...

Jump to

Keyboard shortcuts

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