handler

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT-0 Imports: 11 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(aws.AssociateAddressOptions) (string, error)
	DisassociateAddress(aws.DisassociateAddressOptions) 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) AssociateAddress added in v1.2.3

func (h *Handler) AssociateAddress(event PodEvent) error

func (*Handler) Delete added in v1.2.1

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

func (*Handler) DisassociateAddress added in v1.2.3

func (h *Handler) DisassociateAddress(event PodEvent) 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) GetAddressPoolIdAnnotation added in v1.2.3

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

func (PodEvent) GetAddressPoolIdLabel added in v1.2.3

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

func (PodEvent) GetFixedTagAnnotation added in v1.2.3

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

func (PodEvent) GetFixedTagLabel added in v1.2.3

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

func (PodEvent) GetFixedTagValueAnnotation added in v1.2.3

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

func (PodEvent) GetFixedTagValueLabel added in v1.2.3

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

func (PodEvent) GetPECTypeAnnotation added in v1.2.3

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

func (PodEvent) GetPECTypeLabel added in v1.2.3

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

func (PodEvent) GetPublicIPLabel added in v1.2.1

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

Jump to

Keyboard shortcuts

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