handler

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT-0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENIClient added in v1.2.1

type ENIClient interface {
	AssociateAddress(podKey, podIP, hostIP string, addressPoolId *string) (string, error)
	DisassociateAddress(podKey string) error
	HasAssociatedAddress(podIP, hostIP string) (bool, error)
}

type Handler

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

func NewHandler

func NewHandler(logger *slog.Logger, coreClient clientv1.CoreV1Interface, eniClient ENIClient) *Handler

func (*Handler) AddOrUpdate added in v1.2.1

func (h *Handler) AddOrUpdate(key string, pod v1.Pod) error

func (*Handler) Delete added in v1.2.1

func (h *Handler) Delete(key string) error

type PodEvent added in v1.2.1

type PodEvent struct {
	Key             string
	Name            string
	Namespace       string
	Annotations     map[string]string
	Labels          map[string]string
	IP              string
	HostIP          string
	ResourceVersion string
}

func NewPodEvent added in v1.2.1

func NewPodEvent(key string, pod v1.Pod) PodEvent

func (PodEvent) GetAddressPoolId added in v1.2.1

func (p PodEvent) GetAddressPoolId() *string

func (PodEvent) GetPublicIPLabel added in v1.2.1

func (p PodEvent) GetPublicIPLabel() (string, bool)

func (PodEvent) HasEIPAnnotation added in v1.2.1

func (p PodEvent) HasEIPAnnotation() bool

Jump to

Keyboard shortcuts

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