MCPcopy Index your code
hub / github.com/docker/cli / validEventNames

Function validEventNames

cli/command/system/completion.go:152–161  ·  view source on GitHub ↗

validEventNames provides a list of all event actions. The list is derived from eventActions. Actions that are not suitable for usage in completions are removed.

()

Source from the content-addressed store, hash-verified

150// The list is derived from eventActions.
151// Actions that are not suitable for usage in completions are removed.
152func validEventNames() []string {
153 names := make([]string, 0, len(eventActions))
154 for _, eventAction := range eventActions {
155 if strings.Contains(string(eventAction), " ") {
156 continue
157 }
158 names = append(names, string(eventAction))
159 }
160 return names
161}
162
163// configNames contacts the API to get a list of config names.
164// In case of an error, an empty list is returned.

Callers 1

completeEventFiltersFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…