buildbucket

package
v0.0.0-...-a70aae3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package buildbucket contains Buildbucket-related utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBuilderID

func ParseBuilderID(s string) (*buildbucketpb.BuilderID, error)

ParseBuilderID converts a builderID string like "project/bucket/builder" to a protobuf BuilderID.

Types

type Client

type Client interface {
	// GetBuild gets info about a single build.
	GetBuild(ctx context.Context, in *bbpb.GetBuildRequest, opts ...grpc.CallOption) (*bbpb.Build, error)
	// SearchBuilds searches for builds.
	SearchBuilds(ctx context.Context, in *bbpb.SearchBuildsRequest, opts ...grpc.CallOption) (*bbpb.SearchBuildsResponse, error)
	// CancelBuild cancels a build.
	CancelBuild(ctx context.Context, in *bbpb.CancelBuildRequest, opts ...grpc.CallOption) (*bbpb.Build, error)
	// Batch executes multiple requests in a batch.
	Batch(ctx context.Context, in *bbpb.BatchRequest, opts ...grpc.CallOption) (*bbpb.BatchResponse, error)
}

Client defines a subset of the Buildbucket API used by CV.

For the full definition, see: https://pkg.go.dev/go.chromium.org/luci/buildbucket/proto#BuildsClient

type ClientFactory

type ClientFactory interface {
	MakeClient(ctx context.Context, host, luciProject string) (Client, error)
}

ClientFactory creates Client tied to Buildbucket host and LUCI project.

func NewClientFactory

func NewClientFactory() ClientFactory

NewClientFactory returns a ClientFactory for use in production.

Directories

Path Synopsis
Package bbfacade provides a facade for CV Tryjob support, hiding Buildbucket-specifc implementation details.
Package bbfacade provides a facade for CV Tryjob support, hiding Buildbucket-specifc implementation details.
Package bbfake implements fake Buildbucket server and the client connects to the fake for needs of CV tests.
Package bbfake implements fake Buildbucket server and the client connects to the fake for needs of CV tests.
Package bblistener listens to build update notifications from Buildbucket Pub/Sub.
Package bblistener listens to build update notifications from Buildbucket Pub/Sub.

Jump to

Keyboard shortcuts

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