- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for dedupPorts (0.1 sec)
-
cni/pkg/plugin/sidecar_redirect.go
return fmt.Errorf("failed parsing cidr '%s': %v", cidr, err) } } } return nil } func splitPorts(portsString string) []string { return strings.Split(portsString, ",") } func dedupPorts(ports []string) []string { dedup := make(map[string]bool) keys := []string{} for _, port := range ports { if !dedup[port] { dedup[port] = true keys = append(keys, port) } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 10.6K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 17.3K bytes - Viewed (0)