models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPAddress

func GetIPAddress(node *corev1.Node) string

GetIPAddress is a function that retrieves the internal IP address of a corev1.Node object. It iterates through the addresses in the node's status and returns the first address of type corev1.NodeInternalIP. If no address of that type is found, it returns an empty string.

Types

type LoadBalanceTarget

type LoadBalanceTarget struct {
	Name      string
	IpAddress string
	Port      int
	Weight    int
}

LoadBalanceTarget represents a target for load balancing.

Jump to

Keyboard shortcuts

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