MCPcopy
hub / github.com/purpleidea/mgmt / Background

Method Background

engine/resources.go:451–451  ·  view source on GitHub ↗

Background is the worker function to run. It is invoked once per resource kind via one arbitrary instance of that kind. As a result, it's important not to meddle with resource-specific state. It must shutdown when the context is cancelled. It should error if something ever goes wrong whether during

(*BackgroundHandle)

Source from the content-addressed store, hash-verified

449 // this scenario would need to be used. The actual background func is
450 // generated by calling this constructor.
451 Background(*BackgroundHandle) BackgroundFunc
452}
453
454// YAMLRes is a resource that supports creation by unmarshalling.

Callers 15

mainFunction · 0.65
RunLinearMethod · 0.65
SimpleDeployLangMethod · 0.65
SimpleDeployLangMethod · 0.65
TestAstFunc2Function · 0.65
TestAstFunc3Function · 0.65
runInterpretFunction · 0.65
runLangEventsFunction · 0.65
testToLowerFunction · 0.65
TestToUpperFunction · 0.65

Implementers 4

BackgroundPoolengine/util.go
VirtResengine/resources/virt.go
ScheduleResengine/resources/schedule.go
TestResengine/resources/test.go

Calls

no outgoing calls

Tested by 15

TestAstFunc2Function · 0.52
TestAstFunc3Function · 0.52
runInterpretFunction · 0.52
runLangEventsFunction · 0.52
testToLowerFunction · 0.52
TestToUpperFunction · 0.52
TestTrimSpaceFunction · 0.52
TestContainsFunction · 0.52
TestHasPrefixFunction · 0.52
TestHasSuffixFunction · 0.52