kube

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 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 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 any)

OnAdd handles the endpoints add events.

func (*EventHandler) OnDelete

func (h *EventHandler) OnDelete(obj any)

OnDelete handles the endpoints delete events.

func (*EventHandler) OnUpdate

func (h *EventHandler) OnUpdate(oldObj, newObj any)

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