k8

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Type used in config.
	Type = "k8"
)

Variables

This section is empty.

Functions

func New

Types

type K8r

type K8r struct {
	// contains filtered or unexported fields
}

func (*K8r) Close

func (k *K8r) Close()

Close stops the recolver

func (*K8r) GetEndPoints

func (k *K8r) GetEndPoints() []string

GetEndPoints returns an array of Ips for the given service at that point of time.

func (*K8r) Latest

func (k *K8r) Latest() []string

Latest returns the latest when watcher triggers a refresh for k8 since the watcher doesnt update the list of endpoints., Latest call will get the endpoints and update them

func (*K8r) Refresh

func (k *K8r) Refresh() <-chan bool

Refresh tells when to refresh the data

func (*K8r) Watch

func (k *K8r) Watch()

Watch triggers a bool chan on K8r to convey refresh to the caller Blocks for updates

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL