bb

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package bb provides a buildbucket Client with helper methods for interacting with builds.

Index

Constants

View Source
const FakeBuildsContextKey = "Key for fake builds"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides helper methods to interact with buildbucket builds.

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient returns a new client to interact with buildbucket builds from the given builder.

func (*Client) GetBuild

func (c *Client) GetBuild(ctx context.Context, ID int64) (*buildbucket_pb.Build, error)

GetBuild gets a buildbucket build by ID.

type FakeGetBuildResponse

type FakeGetBuildResponse struct {
	// Build is the build message that will be returned as the GetBuild response
	//
	// Mutually exclusive with Err
	Build *buildbucket_pb.Build
	// error to return instead of a Build
	//
	// Mutually exclusive with Err
	Err error
}

Jump to

Keyboard shortcuts

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