utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunks added in v0.0.18

func Chunks[T any](in []T, size int) [][]T

func GetNewConditions added in v0.0.16

func GetNewConditions(conditions []v1.Condition, newCond v1.Condition) []v1.Condition

func LatticeServiceName added in v0.0.17

func LatticeServiceName(k8sSourceRouteName string, k8sSourceRouteNamespace string) string

func SliceFilter added in v0.0.17

func SliceFilter[T any](in []T, f FilterFunc[T]) []T

func SliceMap added in v0.0.16

func SliceMap[T any, U any](in []T, f MapFunc[T, U]) []U

func TargetRefToLatticeResourceName added in v0.0.18

func TargetRefToLatticeResourceName(
	targetRef *gwv1alpha2.PolicyTargetReference,
	parentNamespace string,
) (string, error)

func Truncate added in v0.0.13

func Truncate(name string, length int) string

Types

type FilterFunc added in v0.0.17

type FilterFunc[T any] func(T) bool

type MapFunc added in v0.0.16

type MapFunc[T any, U any] func(T) U

Directories

Path Synopsis
Package retry is a retry with backoff implementation
Package retry is a retry with backoff implementation

Jump to

Keyboard shortcuts

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