utils

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSliceContainment

func CheckSliceContainment[T comparable](needles, haystack []T) []T

func MapSlice

func MapSlice[T any, U any](slice []T, f func(T) U) []U

Applies a function to each element of a slice, returning a new slice with the results

func UniqueSliceElements

func UniqueSliceElements[T comparable](inputSlice []T) []T

Removes duplicate elements from a slice

func ValidateNamespaceName added in v0.26.0

func ValidateNamespaceName(namespace string) error

ValidateNamespaceName checks if the namespace name is valid according to Kubernetes conventions and returns an error if it's not valid.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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