util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACLEqual

func ACLEqual(a, b []*lb.ACL) bool

ACLEqual compares two slices of pointers to lb.ACL objects. It returns true if both slices contain the same ACLs, regardless of order.

func IPsEqual

func IPsEqual(a, b []*string) bool

IPsEqual compares two slices of pointers to strings representing IP addresses. It returns true if both slices contain the same IP addresses, regardless of order.

func LBSpec

func LBSpec(c client.Zones, spec infrav1.LoadBalancerSpec) (zone scw.Zone, lbType string, err error)

LBSpec returns the zone and type of the LoadBalancer based on the provided LoadBalancerSpec. If the zone is not specified in the spec, it defaults to the zone of the Scaleway client. If the type is not specified, it defaults to lbDefaultType.

func MainLBSpec

func MainLBSpec(c client.Zones, scalewayCluster *infrav1.ScalewayCluster) (zone scw.Zone, lbType string, err error)

MainLBSpec returns the zone and type of the main LoadBalancer for the ScalewayCluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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