watcher

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Name  string
	Host  string
	Port  string
	Probe *BackendProbe
}

type BackendConfig

type BackendConfig struct {
	Backends BackendList
	Primary  *Backend
}

func NewBackendConfig

func NewBackendConfig() *BackendConfig

type BackendList

type BackendList []Backend

func BackendListFromSubset

func BackendListFromSubset(ep v1.EndpointSubset, portName string) (BackendList, error)

func (BackendList) Contains

func (l BackendList) Contains(b *Backend) bool

func (BackendList) EqualsEndpoints

func (l BackendList) EqualsEndpoints(ep v1.EndpointSubset) bool

type BackendProbe

type BackendProbe struct {
	URL       string
	Interval  int
	Timeout   int
	Window    int
	Threshold int
}

type BackendWatcher

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

func NewBackendWatcher

func NewBackendWatcher(client kubernetes.Interface, namespace, serviceName, portName string) *BackendWatcher

func (*BackendWatcher) Run

func (v *BackendWatcher) Run() chan *BackendConfig

Jump to

Keyboard shortcuts

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