utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalStringsFromList

func CanonicalStringsFromList(l []maintenancev1.NodeMaintenance) []string

CanonicalStringsFromList returns list with the CanonicalString value of NodeMaintenance

func CanonicalStringsFromListP

func CanonicalStringsFromListP(l []*maintenancev1.NodeMaintenance) []string

CanonicalStringsFromListP returns list with the CanonicalString value of NodeMaintenance

func Max

func Max[T cmp.Ordered](a T, b T) T

Max returns the max between a and b

func Min

func Min[T cmp.Ordered](a T, b T) T

Min returns the min between a and b

func ToPointerSlice

func ToPointerSlice[T any](in []T) []*T

ToPointerSlice converts a slice of concrete type to a slice of pointers of the given type

Types

This section is empty.

Jump to

Keyboard shortcuts

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