Documentation
¶
Index ¶
- type Context
- type ContextMock
- func (_m *ContextMock) CertificateObserver() certificate.Observer
- func (_m *ContextMock) Config() *config.Configuration
- func (_m *ContextMock) EXPECT() *ContextMock_Expecter
- func (_m *ContextMock) KeyHolderRegistry() keyholder.Registry
- func (_m *ContextMock) Logger() zerolog.Logger
- func (_m *ContextMock) Validator() validation.Validator
- func (_m *ContextMock) Watcher() watcher.Watcher
- type ContextMock_CertificateObserver_Call
- func (_c *ContextMock_CertificateObserver_Call) Return(_a0 certificate.Observer) *ContextMock_CertificateObserver_Call
- func (_c *ContextMock_CertificateObserver_Call) Run(run func()) *ContextMock_CertificateObserver_Call
- func (_c *ContextMock_CertificateObserver_Call) RunAndReturn(run func() certificate.Observer) *ContextMock_CertificateObserver_Call
- type ContextMock_Config_Call
- type ContextMock_Expecter
- func (_e *ContextMock_Expecter) CertificateObserver() *ContextMock_CertificateObserver_Call
- func (_e *ContextMock_Expecter) Config() *ContextMock_Config_Call
- func (_e *ContextMock_Expecter) KeyHolderRegistry() *ContextMock_KeyHolderRegistry_Call
- func (_e *ContextMock_Expecter) Logger() *ContextMock_Logger_Call
- func (_e *ContextMock_Expecter) Validator() *ContextMock_Validator_Call
- func (_e *ContextMock_Expecter) Watcher() *ContextMock_Watcher_Call
- type ContextMock_KeyHolderRegistry_Call
- func (_c *ContextMock_KeyHolderRegistry_Call) Return(_a0 keyholder.Registry) *ContextMock_KeyHolderRegistry_Call
- func (_c *ContextMock_KeyHolderRegistry_Call) Run(run func()) *ContextMock_KeyHolderRegistry_Call
- func (_c *ContextMock_KeyHolderRegistry_Call) RunAndReturn(run func() keyholder.Registry) *ContextMock_KeyHolderRegistry_Call
- type ContextMock_Logger_Call
- type ContextMock_Validator_Call
- type ContextMock_Watcher_Call
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 ¶
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 ¶
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 (_c *ContextMock_CertificateObserver_Call) Return(_a0 certificate.Observer) *ContextMock_CertificateObserver_Call
func (*ContextMock_CertificateObserver_Call) Run ¶
func (_c *ContextMock_CertificateObserver_Call) Run(run func()) *ContextMock_CertificateObserver_Call
func (*ContextMock_CertificateObserver_Call) RunAndReturn ¶
func (_c *ContextMock_CertificateObserver_Call) RunAndReturn(run func() certificate.Observer) *ContextMock_CertificateObserver_Call
type ContextMock_Config_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 (_c *ContextMock_Config_Call) Return(_a0 *config.Configuration) *ContextMock_Config_Call
func (*ContextMock_Config_Call) Run ¶
func (_c *ContextMock_Config_Call) Run(run func()) *ContextMock_Config_Call
func (*ContextMock_Config_Call) RunAndReturn ¶
func (_c *ContextMock_Config_Call) RunAndReturn(run func() *config.Configuration) *ContextMock_Config_Call
type ContextMock_Expecter ¶
type ContextMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ContextMock_Expecter) CertificateObserver ¶
func (_e *ContextMock_Expecter) CertificateObserver() *ContextMock_CertificateObserver_Call
CertificateObserver is a helper method to define mock.On call
func (*ContextMock_Expecter) Config ¶
func (_e *ContextMock_Expecter) Config() *ContextMock_Config_Call
Config is a helper method to define mock.On call
func (*ContextMock_Expecter) KeyHolderRegistry ¶
func (_e *ContextMock_Expecter) KeyHolderRegistry() *ContextMock_KeyHolderRegistry_Call
KeyHolderRegistry is a helper method to define mock.On call
func (*ContextMock_Expecter) Logger ¶
func (_e *ContextMock_Expecter) Logger() *ContextMock_Logger_Call
Logger is a helper method to define mock.On call
func (*ContextMock_Expecter) Validator ¶
func (_e *ContextMock_Expecter) Validator() *ContextMock_Validator_Call
Validator is a helper method to define mock.On call
func (*ContextMock_Expecter) Watcher ¶
func (_e *ContextMock_Expecter) Watcher() *ContextMock_Watcher_Call
Watcher is a helper method to define mock.On call
type ContextMock_KeyHolderRegistry_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 (_c *ContextMock_KeyHolderRegistry_Call) Return(_a0 keyholder.Registry) *ContextMock_KeyHolderRegistry_Call
func (*ContextMock_KeyHolderRegistry_Call) Run ¶
func (_c *ContextMock_KeyHolderRegistry_Call) Run(run func()) *ContextMock_KeyHolderRegistry_Call
func (*ContextMock_KeyHolderRegistry_Call) RunAndReturn ¶
func (_c *ContextMock_KeyHolderRegistry_Call) RunAndReturn(run func() keyholder.Registry) *ContextMock_KeyHolderRegistry_Call
type ContextMock_Logger_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 (_c *ContextMock_Logger_Call) Return(_a0 zerolog.Logger) *ContextMock_Logger_Call
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 ¶
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 (_c *ContextMock_Validator_Call) Return(_a0 validation.Validator) *ContextMock_Validator_Call
func (*ContextMock_Validator_Call) Run ¶
func (_c *ContextMock_Validator_Call) Run(run func()) *ContextMock_Validator_Call
func (*ContextMock_Validator_Call) RunAndReturn ¶
func (_c *ContextMock_Validator_Call) RunAndReturn(run func() validation.Validator) *ContextMock_Validator_Call
type ContextMock_Watcher_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 (_c *ContextMock_Watcher_Call) Return(_a0 watcher.Watcher) *ContextMock_Watcher_Call
func (*ContextMock_Watcher_Call) Run ¶
func (_c *ContextMock_Watcher_Call) Run(run func()) *ContextMock_Watcher_Call
func (*ContextMock_Watcher_Call) RunAndReturn ¶
func (_c *ContextMock_Watcher_Call) RunAndReturn(run func() watcher.Watcher) *ContextMock_Watcher_Call