MCPcopy
hub / github.com/cilium/cilium / AsSlice

Method AsSlice

pkg/container/set/set.go:233–235  ·  view source on GitHub ↗

AsSlice converts the set to a slice.

()

Source from the content-addressed store, hash-verified

231
232// AsSlice converts the set to a slice.
233func (s Set[T]) AsSlice() []T {
234 return slices.Collect(s.Members())
235}
236
237// Clone returns a copy of the set.
238func (s Set[T]) Clone() Set[T] {

Callers 15

updateMappingFunction · 0.45
TestImmSetFuncFunction · 0.45
TestImmSetFunction · 0.45
keyIPv4Function · 0.45
keyIPv6Function · 0.45
newCiliumNodeFunction · 0.45
TestReplaceByResourceFunction · 0.45
mergeStringListFunction · 0.45
GetFirstK8sMatchMethod · 0.45
updatePrefixesMethod · 0.45
TestAddReplaceRemoveRuleFunction · 0.45

Calls 2

MembersMethod · 0.95
CollectMethod · 0.45

Tested by 15

updateMappingFunction · 0.36
TestImmSetFuncFunction · 0.36
TestImmSetFunction · 0.36
newCiliumNodeFunction · 0.36
TestReplaceByResourceFunction · 0.36
TestAddReplaceRemoveRuleFunction · 0.36
TestDecode_DropNotifyFunction · 0.36
TestDecode_TraceNotifyFunction · 0.36