jobcreate

package
v0.0.0-...-ef45db5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBuild

func FromBuild(build *bbpb.Build, hostname, name string, priorityDiff int, extraTags []string) *job.Definition

FromBuild generates a new job.Definition using the provided Build.

func FromNewTaskRequest

func FromNewTaskRequest(ctx context.Context, r *swarmingpb.NewTaskRequest, name, swarmingHost string, ks job.KitchenSupport, priorityDiff int, bld *bbpb.Build, extraTags []string, authClient *http.Client) (ret *job.Definition, err error)

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL