Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v0.17.28 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Watcher() watcher.Watcher
	KeyHolderRegistry() keyholder.Registry
	CertificateObserver() certificate.Observer
	Validator() validation.Validator
	Logger() zerolog.Logger
	Config() *config.Configuration
}

type ContextMock

type ContextMock struct {
	mock.Mock
}

ContextMock is an autogenerated mock type for the Context type

func NewContextMock

func NewContextMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContextMock

NewContextMock creates a new instance of ContextMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContextMock) CertificateObserver

func (_m *ContextMock) CertificateObserver() certificate.Observer

CertificateObserver provides a mock function with given fields:

func (*ContextMock) Config

func (_m *ContextMock) Config() *config.Configuration

Config provides a mock function with given fields:

func (*ContextMock) EXPECT

func (_m *ContextMock) EXPECT() *ContextMock_Expecter

func (*ContextMock) KeyHolderRegistry

func (_m *ContextMock) KeyHolderRegistry() keyholder.Registry

KeyHolderRegistry provides a mock function with given fields:

func (*ContextMock) Logger

func (_m *ContextMock) Logger() zerolog.Logger

Logger provides a mock function with given fields:

func (*ContextMock) Validator

func (_m *ContextMock) Validator() validation.Validator

Validator provides a mock function with given fields:

func (*ContextMock) Watcher

func (_m *ContextMock) Watcher() watcher.Watcher

Watcher provides a mock function with given fields:

type ContextMock_CertificateObserver_Call

type ContextMock_CertificateObserver_Call struct {
	*mock.Call
}

ContextMock_CertificateObserver_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CertificateObserver'

func (*ContextMock_CertificateObserver_Call) Return

func (*ContextMock_CertificateObserver_Call) Run

func (*ContextMock_CertificateObserver_Call) RunAndReturn

type ContextMock_Config_Call

type ContextMock_Config_Call struct {
	*mock.Call
}

ContextMock_Config_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Config'

func (*ContextMock_Config_Call) Return

func (*ContextMock_Config_Call) Run

func (_c *ContextMock_Config_Call) Run(run func()) *ContextMock_Config_Call

func (*ContextMock_Config_Call) RunAndReturn

type ContextMock_Expecter

type ContextMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContextMock_Expecter) CertificateObserver

CertificateObserver is a helper method to define mock.On call

func (*ContextMock_Expecter) Config

Config is a helper method to define mock.On call

func (*ContextMock_Expecter) KeyHolderRegistry

KeyHolderRegistry is a helper method to define mock.On call

func (*ContextMock_Expecter) Logger

Logger is a helper method to define mock.On call

func (*ContextMock_Expecter) Validator

Validator is a helper method to define mock.On call

func (*ContextMock_Expecter) Watcher

Watcher is a helper method to define mock.On call

type ContextMock_KeyHolderRegistry_Call

type ContextMock_KeyHolderRegistry_Call struct {
	*mock.Call
}

ContextMock_KeyHolderRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeyHolderRegistry'

func (*ContextMock_KeyHolderRegistry_Call) Return

func (*ContextMock_KeyHolderRegistry_Call) Run

func (*ContextMock_KeyHolderRegistry_Call) RunAndReturn

type ContextMock_Logger_Call

type ContextMock_Logger_Call struct {
	*mock.Call
}

ContextMock_Logger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logger'

func (*ContextMock_Logger_Call) Return

func (*ContextMock_Logger_Call) Run

func (_c *ContextMock_Logger_Call) Run(run func()) *ContextMock_Logger_Call

func (*ContextMock_Logger_Call) RunAndReturn

func (_c *ContextMock_Logger_Call) RunAndReturn(run func() zerolog.Logger) *ContextMock_Logger_Call

type ContextMock_Validator_Call

type ContextMock_Validator_Call struct {
	*mock.Call
}

ContextMock_Validator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validator'

func (*ContextMock_Validator_Call) Return

func (*ContextMock_Validator_Call) Run

func (*ContextMock_Validator_Call) RunAndReturn

type ContextMock_Watcher_Call

type ContextMock_Watcher_Call struct {
	*mock.Call
}

ContextMock_Watcher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watcher'

func (*ContextMock_Watcher_Call) Return

func (*ContextMock_Watcher_Call) Run

func (*ContextMock_Watcher_Call) RunAndReturn

func (_c *ContextMock_Watcher_Call) RunAndReturn(run func() watcher.Watcher) *ContextMock_Watcher_Call

Jump to

Keyboard shortcuts

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