MCPcopy
hub / github.com/docker/compose / oneOffFilter

Function oneOffFilter

pkg/compose/filters.go:45–51  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

43}
44
45func oneOffFilter(b bool) string {
46 v := "False"
47 if b {
48 v = "True"
49 }
50 return labelFilter(api.OneoffLabel, v)
51}
52
53func containerNumberFilter(index int) string {
54 return labelFilter(api.ContainerNumberLabel, strconv.Itoa(index))

Callers 8

startMethod · 0.85
StartMethod · 0.85
TestServiceLinksFunction · 0.85
getDefaultFiltersFunction · 0.85
TestPsFunction · 0.85
projectFilterListOptFunction · 0.85

Calls 1

labelFilterFunction · 0.85

Tested by 5

TestServiceLinksFunction · 0.68
TestPsFunction · 0.68
projectFilterListOptFunction · 0.68