build

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

Overview

Package build provides a way to update the buildbucket Build proto during execution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvocationStepUpdater

type InvocationStepUpdater struct {
	// contains filtered or unexported fields
}

InvocationStepUpdater provides methods to update a step corresponding to the execution of an invocation.

func (*InvocationStepUpdater) NotifyNewTask

func (i *InvocationStepUpdater) NotifyNewTask(task *testrunner.Build)

NotifyNewTask notifies the InvocationStepUpdater of the creation of a new task for an invocation.

type RequestStepUpdater

type RequestStepUpdater struct {
	// contains filtered or unexported fields
}

RequestStepUpdater provides methods to update a step corresponding to the execution of a request.

func NewRequestStep

func NewRequestStep(name string, build *bbpb.Build) *RequestStepUpdater

NewRequestStep creates a new step corresponding to a request.

NewRequestStep returns a RequestStepUpdater that may be used to update this step as the execution proceeds.

func (*RequestStepUpdater) Close

func (r *RequestStepUpdater) Close() error

Close updates the build to reflect that the execution of this request is complete.

RequestStepUpdater should not be used once Close() has been called.

func (*RequestStepUpdater) NewInvocationStep

func (r *RequestStepUpdater) NewInvocationStep(name string) *InvocationStepUpdater

NewInvocationStep creates a new step for an invocation that is part of this request.

NewInvocationStep returns an InvocationStepUpdater that may be used to update this invocation as the execution proceeds.

Jump to

Keyboard shortcuts

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