Back to godoc.org
go.chromium.org/luci / led / job / jobcreate

Package jobcreate

v0.0.0-...-1049e10
Latest Go to latest

The latest major version is .

Published: today | License: Apache-2.0 | Module: go.chromium.org/luci

Index

func FromNewTaskRequest

func FromNewTaskRequest(ctx context.Context, r *swarming.SwarmingRpcsNewTaskRequest, name, swarmingHost string, ks job.KitchenSupport) (ret *job.Definition, err error)

FromNewTaskRequest generates a new job.Definition by parsing the given SwarmingRpcsNewTaskRequest.

If the task's first slice looks like either a bbagent or kitchen-based Buildbucket task, the returned Definition will have the `buildbucket` field populated, otherwise the `swarming` field will be populated.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier