Documentation ¶
Index ¶
- type NoopDiscoveryBackend
- func (noop *NoopDiscoveryBackend) CheckForUpstreamChanges(fields ...string) (didChange, isHealthy bool)
- func (noop *NoopDiscoveryBackend) CheckRegister(check *api.AgentCheckRegistration) error
- func (noop *NoopDiscoveryBackend) ServiceDeregister(serviceID string) error
- func (noop *NoopDiscoveryBackend) ServiceRegister(service *api.AgentServiceRegistration) error
- func (noop *NoopDiscoveryBackend) UpdateTTL(checkID, output, status string) error
- type NoopFileWatcherBackend
- type NoopSecretStorageBackend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopDiscoveryBackend ¶
type NoopDiscoveryBackend struct { Val bool // contains filtered or unexported fields }
NoopDiscoveryBackend is a mock discovery.Backend
func (*NoopDiscoveryBackend) CheckForUpstreamChanges ¶
func (noop *NoopDiscoveryBackend) CheckForUpstreamChanges(fields ...string) (didChange, isHealthy bool)
CheckForUpstreamChanges will return the public Val field to mock whether a change has occurred. Will not report a change on the second check unless the Val has been updated externally by the test rig
func (*NoopDiscoveryBackend) CheckRegister ¶
func (noop *NoopDiscoveryBackend) CheckRegister(check *api.AgentCheckRegistration) error
CheckRegister (required for mock interface)
func (*NoopDiscoveryBackend) ServiceDeregister ¶
func (noop *NoopDiscoveryBackend) ServiceDeregister(serviceID string) error
ServiceDeregister (required for mock interface)
func (*NoopDiscoveryBackend) ServiceRegister ¶
func (noop *NoopDiscoveryBackend) ServiceRegister(service *api.AgentServiceRegistration) error
ServiceRegister (required for mock interface)
func (*NoopDiscoveryBackend) UpdateTTL ¶
func (noop *NoopDiscoveryBackend) UpdateTTL(checkID, output, status string) error
UpdateTTL (required for mock interface)
type NoopFileWatcherBackend ¶
type NoopFileWatcherBackend struct { Val bool // contains filtered or unexported fields }
NoopFileWatcherBackend is a mock surveillee.FileWatcher
func (*NoopFileWatcherBackend) CheckForUpstreamChanges ¶
func (noop *NoopFileWatcherBackend) CheckForUpstreamChanges(fields ...string) (hasChanged, isHealthy bool)
CheckForUpstreamChanges will return the public Val field to mock whether a change has occurred. Will not report a change on the second check unless the Val has been updated externally by the test rig
type NoopSecretStorageBackend ¶
type NoopSecretStorageBackend struct { Val bool // contains filtered or unexported fields }
NoopFileWatcherBackend is a mock surveillee.FileWatcher
func (*NoopSecretStorageBackend) CheckForUpstreamChanges ¶
func (noop *NoopSecretStorageBackend) CheckForUpstreamChanges(fields ...string) (hasChanged, isHealthy bool)
CheckForUpstreamChanges will return the public Val field to mock whether a change has occurred. Will not report a change on the second check unless the Val has been updated externally by the test rig