Documentation ¶
Index ¶
- func Chunks[T any](in []T, size int) [][]T
- func GetNewConditions(conditions []v1.Condition, newCond v1.Condition) []v1.Condition
- func LatticeServiceName(k8sSourceRouteName string, k8sSourceRouteNamespace string) string
- func SliceFilter[T any](in []T, f FilterFunc[T]) []T
- func SliceMap[T any, U any](in []T, f MapFunc[T, U]) []U
- func SliceMapToPtr[T any](in []T) []*T
- func TargetRefToLatticeResourceName(targetRef *gwv1alpha2.PolicyTargetReference, parentNamespace string) (string, error)
- func Truncate(name string, length int) string
- type FilterFunc
- type MapFunc
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewConditions ¶ added in v0.0.16
func LatticeServiceName ¶ added in v0.0.17
func SliceFilter ¶ added in v0.0.17
func SliceFilter[T any](in []T, f FilterFunc[T]) []T
func SliceMapToPtr ¶ added in v1.0.2
func SliceMapToPtr[T any](in []T) []*T
func TargetRefToLatticeResourceName ¶ added in v0.0.18
func TargetRefToLatticeResourceName( targetRef *gwv1alpha2.PolicyTargetReference, parentNamespace string, ) (string, error)
Types ¶
type FilterFunc ¶ added in v0.0.17
type Set ¶ added in v1.0.2
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewSet ¶ added in v1.0.2
func NewSet[T comparable](objs ...T) Set[T]
Click to show internal directories.
Click to hide internal directories.