watcher

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 11 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, retryBackoff time.Duration) *BackendWatcher

func (*BackendWatcher) Run

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

type TemplateWatcher

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

func MustNewTemplateWatcher

func MustNewTemplateWatcher(filename string) *TemplateWatcher

func NewTemplateWatcher

func NewTemplateWatcher(filename string) (*TemplateWatcher, error)

func (*TemplateWatcher) Run

func (t *TemplateWatcher) Run() (chan []byte, chan error)

Jump to

Keyboard shortcuts

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