Documentation
¶
Overview ¶
SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyManager ¶
type ProxyManager struct { Proxies ProxyList TargetProviders TargetProviderList ProxyProviders ProxyProviderList // contains filtered or unexported fields }
ProxyManager struct stores data that is required to manage all proxies
func NewProxyManager ¶
func NewProxyManager(logger zerolog.Logger) *ProxyManager
NewProxyManager function creates a new ProxyManager.
func (*ProxyManager) HandleContainerEvent ¶
func (pm *ProxyManager) HandleContainerEvent(event targetproviders.TargetEvent)
HandleContainerEvent method handles events from a targetprovider
func (*ProxyManager) Start ¶ added in v1.0.0
func (pm *ProxyManager) Start()
Start method starts the ProxyManager.
func (*ProxyManager) StopAllProxies ¶ added in v1.0.0
func (pm *ProxyManager) StopAllProxies()
StopAllProxies method shuts down all proxies.
func (*ProxyManager) WatchEvents ¶ added in v1.0.0
func (pm *ProxyManager) WatchEvents()
WatchEvents method watches for events from all target providers.
type ProxyProviderList ¶ added in v1.0.0
type ProxyProviderList map[string]proxyproviders.Provider
type TargetProviderList ¶ added in v1.0.0
type TargetProviderList map[string]targetproviders.TargetProvider
Click to show internal directories.
Click to hide internal directories.