package
0.4.3
Repository: https://github.com/sub-mod/kubernetes.git
Documentation: pkg.go.dev

# Functions

NewConfigSourceEtcd creates a new ConfigSourceEtcd and immediately runs the created ConfigSourceEtcd in a goroutine.
NewEndpointsConfig creates a new EndpointsConfig.
NewServiceConfig creates a new ServiceConfig.
NewSourceAPI creates a config source that watches for changes to the services and endpoints.

# Constants

These are the available operation types.
These are the available operation types.
These are the available operation types.

# Structs

ConfigSourceEtcd communicates with a etcd via the client, and sends the change notification of services and endpoints to the specified channels.
EndpointsConfig tracks a set of endpoints configurations.
EndpointsUpdate describes an operation of endpoints, sent on the channel.
ServiceConfig tracks a set of service configurations.
ServiceUpdate describes an operation of services, sent on the channel.
SourceAPI implements a configuration source for services and endpoints that uses the client watch API to efficiently detect changes.

# Interfaces

EndpointsConfigHandler is an abstract interface of objects which receive update notifications for the set of endpoints.
ServiceConfigHandler is an abstract interface of objects which receive update notifications for the set of services.
Watcher is the interface needed to receive changes to services and endpoints.

# Type aliases

Operation is a type of operation of services or endpoints.