MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / List

Method List

pkg/funclet/runtime/cgroup/string.go:168–175  ·  view source on GitHub ↗

ListAll returns the contents as a sorted string slice.

()

Source from the content-addressed store, hash-verified

166
167// ListAll returns the contents as a sorted string slice.
168func (s String) List() []string {
169 res := make(sortableSliceOfString, 0, len(s))
170 for key := range s {
171 res = append(res, key)
172 }
173 sort.Sort(res)
174 return []string(res)
175}
176
177// UnsortedList returns the slice with contents in random order.
178func (s String) UnsortedList() []string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected