Move the fact that the worker is requesting jobs of type "osbuild" out of the client library. For one, require consumers to pass accepted job types to RequestJobs() and allow querying for the job type with the new Type() function. Also, make OSBuildArgs() and Update() generic, requiring to pass an argument that matches the job type. |
||
|---|---|---|
| .. | ||
| main.go | ||
| main_test.go | ||
| osbuild.go | ||