MCPcopy
hub / github.com/1Panel-dev/KubePi / ToSlice

Method ToSlice

pkg/collections/set.go:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (s *StringSet) ToSlice() []string {
39 result := make([]string, 0)
40 for k, _ := range s.data {
41 result = append(result, k)
42 }
43 return result
44}
45
46func (s *StringSet) Delete(item string) {
47 delete(s.data, item)

Callers 7

CanVisitAllNamespaceMethod · 0.95
GetUserNamespaceNamesMethod · 0.95
SearchUsersMethod · 0.95
GetUserMethod · 0.95
GetClusterMemberMethod · 0.95
apiResourceHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected