MCPcopy Index your code
hub / github.com/containerd/containerd / ParseAll

Function ParseAll

pkg/filters/parser.go:63–79  ·  view source on GitHub ↗

ParseAll parses each filter in ss and returns a filter that will return true if any filter matches the expression. If no filters are provided, the filter will match anything.

(ss ...string)

Source from the content-addressed store, hash-verified

61//
62// If no filters are provided, the filter will match anything.
63func ParseAll(ss ...string) (Filter, error) {
64 if len(ss) == 0 {
65 return Always, nil
66 }
67
68 var fs []Filter
69 for _, s := range ss {
70 f, err := Parse(s)
71 if err != nil {
72 return nil, fmt.Errorf("%s: %w", err.Error(), errdefs.ErrInvalidArgument)
73 }
74
75 fs = append(fs, f)
76 }
77
78 return Any(fs), nil
79}
80
81type parser struct {
82 input string

Callers 15

WalkInfoFunction · 0.92
TestContainersListFunction · 0.92
TestImagesListFunction · 0.92
ListMethod · 0.92
ListMethod · 0.92
WalkMethod · 0.92
ListStatusesMethod · 0.92
WalkMethod · 0.92
ListMethod · 0.92
WalkMethod · 0.92
ListMethod · 0.92
SubscribeMethod · 0.92

Calls 3

AnyTypeAlias · 0.85
ParseFunction · 0.70
ErrorMethod · 0.45

Tested by 3

TestContainersListFunction · 0.74
TestImagesListFunction · 0.74
WalkMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…