kube

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

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

EventHandler is ResourceEventHandler implementation.

func NewEventHandler

func NewEventHandler(update func([]string)) *EventHandler

NewEventHandler returns an EventHandler.

func (*EventHandler) OnAdd

func (h *EventHandler) OnAdd(obj interface{})

OnAdd handles the endpoints add events.

func (*EventHandler) OnDelete

func (h *EventHandler) OnDelete(obj interface{})

OnDelete handles the endpoints delete events.

func (*EventHandler) OnUpdate

func (h *EventHandler) OnUpdate(oldObj, newObj interface{})

OnUpdate handles the endpoints update events.

func (*EventHandler) Update

func (h *EventHandler) Update(endpoints *v1.Endpoints)

Update updates the endpoints.

type Service

type Service struct {
	Namespace string
	Name      string
	Port      int
}

Service represents a service with namespace, name and port.

func ParseTarget

func ParseTarget(target resolver.Target) (Service, error)

ParseTarget parses the resolver.Target.

Jump to

Keyboard shortcuts

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