Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulRegistry ¶
type ConsulRegistry struct{}
func (*ConsulRegistry) ListServices ¶
func (r *ConsulRegistry) ListServices(ctx context.Context) ([]string, error)
func (*ConsulRegistry) LookupService ¶
func (*ConsulRegistry) String ¶
func (r *ConsulRegistry) String() string
type KubernetesRegistry ¶
type KubernetesRegistry struct { Namespace string // contains filtered or unexported fields }
KubernetesRegistry is a registry which discovers PODs running on a Kubernetes cluster.
TODO: give the ability to configure multiple Kubernetes clusters.
func NewKubernetesRegistry ¶
func NewKubernetesRegistry(client *kubernetes.Clientset) *KubernetesRegistry
func (*KubernetesRegistry) Init ¶
func (k *KubernetesRegistry) Init(ctx context.Context)
Init initialize the watcher and store configuration for the registry.
func (*KubernetesRegistry) ListServices ¶
func (k *KubernetesRegistry) ListServices(ctx context.Context) ([]string, error)
func (*KubernetesRegistry) LookupService ¶
LookupService implements the Registry interface. The returned Service will contain one Host entry per POD IP+container exposed port.
func (*KubernetesRegistry) String ¶
func (k *KubernetesRegistry) String() string
Name implements the Registry interface.
type Service ¶
func (Service) LookupService ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.