worker

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	// The Swarming command to execute.
	Cmd []string
	// Tags to append to the swarming task.
	Tags []string
	// Name to use for the swarming task.
	Name string
}

Task contains the information required to create a Skylab swarming task.

func AdminTaskForType

func AdminTaskForType(ctx context.Context, ttype fleet.TaskType) Task

AdminTaskForType returns the information required to create a Skylab task for an admin task type.

func AuditTaskWithActions

func AuditTaskWithActions(ctx context.Context, taskname, actions string) Task

AuditTaskWithActions returns the information required to create a Skylab task for `skylab_swarming_worker -> lucifer audittask`.

actions may be empty to run the default audit task with no actions.

func DeployTaskWithActions

func DeployTaskWithActions(ctx context.Context, actions string) Task

DeployTaskWithActions returns the information required to create a Skylab task for `lucifer deploytask`.

actions may be empty to run the default deploytask with no actions.

Jump to

Keyboard shortcuts

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