Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdapterFactories = &adapterFactoryExt{ newExtensionPoint(new(AdapterFactory)), }
AdapterFactories maintains a list of Extension points
Functions ¶
func Unregister ¶
Unregister functions implements unregistering from service-registry
Types ¶
type AdapterFactory ¶
type AdapterFactory interface {
New(uri *url.URL) RegistryAdapter
}
AdapterFactory implements the ServiceRegistrator
type Bridge ¶
Bridge maintains consolidated information to process Service registering
func (*Bridge) AddService ¶
func (b *Bridge) AddService(srvID string, srvName string, nwName string, tenantName string, srvIP string)
AddService adds a new service to registry when triggered from dockplugin
type Config ¶
type Config struct { HostIP string Internal bool ForceTags string RefreshTTL int RefreshInterval int DeregisterCheck string RetryInterval int RetryAttempts int }
Config maintains the supplementing state of the service
Field descriptions: * HostIP: IP for ports mapped to the host * Internal: Use internal ports instead of published ones * ForceTags: Append tags for all registered services * RefreshTTL: TTL for services (default is no expiry) * RefreshInterval: Frequency with which service TTLs are refreshed * DeregisterCheck: Deregister exited services "always" or "on-success" * RetryAttempts: Max retry attempts to establish a connection with the * backend. Use -1 for infinite retries * RetryInterval: Interval (in millisecond) between retry-attempts
func DefaultBridgeConfig ¶
func DefaultBridgeConfig() Config
DefaultBridgeConfig sets the default configuration for Bridge config
Click to show internal directories.
Click to hide internal directories.