MCPcopy
hub / github.com/containers/toolbox / getDelayEntryPoint

Function getDelayEntryPoint

src/cmd/initContainer.go:882–894  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

880}
881
882func getDelayEntryPoint() (time.Duration, bool) {
883 valueString := os.Getenv("TOOLBX_DELAY_ENTRY_POINT")
884 if valueString == "" {
885 return 0, false
886 }
887
888 if valueN, err := strconv.Atoi(valueString); valueN > 0 && err == nil {
889 delay := time.Duration(valueN) * time.Second
890 return delay, true
891 }
892
893 return 0, false
894}
895
896func getFailEntryPoint() (uint, bool) {
897 valueString := os.Getenv("TOOLBX_FAIL_ENTRY_POINT")

Callers 1

initContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…