endpoints

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package endpoints provides kubernetes Endpoint IP retrieval

Deprecated: this trivial package is left due to potential external API needs. It is unused by the dispatchers package in favour of the internal version of this package which supplies additional structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, c *k8s.Client, epNamespace, epName string) ([]string, error)

Get retrieves the IP addresses for a named endpoint in a given namespace. If the namespace is empty, the `default` namespace will be used.

func Watch

func Watch(ctx context.Context, c *k8s.Client, changes chan error, namespace string) error

Watch watches a namespace and returns a nil error on the provided channel when a change occurs. If an error occurs, the error will be sent down the channel and the watch will terminate.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL