kube

package
v0.0.0-...-d5d5ef8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 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, isInInitialList bool)

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