Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Namespace specifies the kubernetes namespace Namespace string // DiscoveryPortName specifies the discovery port name DiscoveryPortName string // PortName specifies the client port name PortName string // PodLabels specifies the pod labels PodLabels map[string]string }
Config defines the kubernetes discovery configuration
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery represents the kubernetes discovery
func NewDiscovery ¶
NewDiscovery returns an instance of the kubernetes discovery provider
func (*Discovery) Deregister ¶
Deregister removes this node from a service discovery directory.
func (*Discovery) DiscoverPeers ¶
DiscoverPeers returns a list of known nodes.
func (*Discovery) Initialize ¶
Initialize initializes the plugin: registers some internal data structures, clients etc.
Click to show internal directories.
Click to hide internal directories.