utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualSets

func EqualSets(s1, s2 []string) bool

EqualSets checks if two slices contain exactly the same elements independent of the ordering.

func MatchLabels

func MatchLabels(m1, m2 map[string]string) bool

MatchLabels checks if all m2 keys and values are present in m1. If m1 or m2 is nil returns false.

func Subset

func Subset(s1, s2 []string) bool

Subset checks if all elements of s1 are contained in s2. An empty s1 is always a subset of s2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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