tcutil

package
v0.0.0-...-ec8f55a Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishTask

func PublishTask(queue *tcqueue.Queue, taskID string, tdr tcqueue.TaskDefinitionRequest, workerGroup, workerID string, artifacts []ArtifactSource) error

PublishTask submits the task `taskID` with definition `tdr` using `queue`. The task is claimed using `workerGroup` and `workerID`, and then `artifacts` are uploaded in sequence using taskcluster-lib-artifact-go. This function is useful for e.g. integration tests for the various taskcluster go libraries and utilities that rely on tasks and/or artifact content to test their features.

Types

type ArtifactSource

type ArtifactSource struct {
	Name      string
	Content   io.ReadSeeker
	GZip      bool
	Multipart bool
}

func (*ArtifactSource) Upload

func (as *ArtifactSource) Upload(queue *tcqueue.Queue, taskID string) (err error)

Jump to

Keyboard shortcuts

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