tasktemplate

package
v0.0.0-...-678bb0e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package tasktemplate resolves Swarming task templates.

Templated strings may be passed to Swarming tasks in order to have them resolve task-side parameters. See Params for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	// SwarmingRunID is the substitution to use for the "swarming_run_id" template
	// parameter.
	//
	// Note that this is the Swarming Run ID, not Task ID. The Run ID is the
	// combination of the Task ID with the try number.
	SwarmingRunID string
}

Params contains supported Swarming task string substitution parameters.

A template string can be resolved by passing it to a Params instance's Resolve method.

func (*Params) Resolve

func (p *Params) Resolve(v string) (string, error)

Resolve resolves v against p's parameters, populating any template fields with their respective parameter value.

If the string is invalid, or if it references an undefined template parameter, an error will be returned.

Jump to

Keyboard shortcuts

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