rpc

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 66 Imported by: 1

Documentation

Overview

Package rpc contains rpc service implementation.

Index

Constants

View Source
const (
	TagNew tagValidationMode = iota
	TagAppend
)
View Source
const (
	// BbagentUtilPkgDir is the directory containing packages that bbagent uses.
	BbagentUtilPkgDir = "bbagent_utility_packages"
	// CipdClientDir is the directory containing cipd itself
	CipdClientDir  = "cipd"
	UserPackageDir = "cipd_bin_packages"
)

Variables

This section is empty.

Functions

func NewBuilders

func NewBuilders() pb.BuildersServer

NewBuilders returns a new pb.BuildersServer.

func NewBuilds

func NewBuilds() pb.BuildsServer

NewBuilds returns a new pb.BuildsServer.

Types

type Builders

type Builders struct{}

Builders implements pb.BuildersServer.

func (*Builders) GetBuilder

func (*Builders) GetBuilder(ctx context.Context, req *pb.GetBuilderRequest) (*pb.BuilderItem, error)

GetBuilder handles a request to retrieve a builder. Implements pb.BuildersServer.

func (*Builders) ListBuilders

ListBuilders handles a request to retrieve builders. Implements pb.BuildersServer.

func (*Builders) SetBuilderHealth

SetBuilderHealth implements pb.Builds.SetBuilderHealth.

type Builds

type Builds struct {
}

Builds implements pb.BuildsServer.

func (*Builds) Batch

func (b *Builds) Batch(ctx context.Context, req *pb.BatchRequest) (*pb.BatchResponse, error)

Batch handles a batch request. Implements pb.BuildsServer.

func (*Builds) CancelBuild

func (*Builds) CancelBuild(ctx context.Context, req *pb.CancelBuildRequest) (*pb.Build, error)

CancelBuild handles a request to cancel a build. Implements pb.BuildsServer.

func (*Builds) CreateBuild

func (*Builds) CreateBuild(ctx context.Context, req *pb.CreateBuildRequest) (*pb.Build, error)

CreateBuild handles a request to create a build. Implements pb.BuildsServer.

func (*Builds) CustomMetricPreview

CustomMetricPreview evaluates a build with a custom metric definition and returns the preview result. Implements pb.BuildsServer.

func (*Builds) GetBuild

func (*Builds) GetBuild(ctx context.Context, req *pb.GetBuildRequest) (*pb.Build, error)

GetBuild handles a request to retrieve a build. Implements pb.BuildsServer.

func (*Builds) GetBuildStatus

func (*Builds) GetBuildStatus(ctx context.Context, req *pb.GetBuildStatusRequest) (*pb.Build, error)

GetBuildStatus handles a request to retrieve a build's status. Implements pb.BuildsServer.

func (*Builds) ScheduleBuild

func (*Builds) ScheduleBuild(ctx context.Context, req *pb.ScheduleBuildRequest) (*pb.Build, error)

ScheduleBuild handles a request to schedule a build. Implements pb.BuildsServer.

func (*Builds) SearchBuilds

SearchBuilds handles a request to search for builds. Implements pb.BuildsServer.

func (*Builds) StartBuild

func (*Builds) StartBuild(ctx context.Context, req *pb.StartBuildRequest) (*pb.StartBuildResponse, error)

StartBuild handles a request to start a build. Implements pb.BuildsServer.

func (*Builds) SynthesizeBuild

func (*Builds) SynthesizeBuild(ctx context.Context, req *pb.SynthesizeBuildRequest) (*pb.Build, error)

SynthesizeBuild handles a request to synthesize a build. Implements pb.BuildsServer.

func (*Builds) UpdateBuild

func (*Builds) UpdateBuild(ctx context.Context, req *pb.UpdateBuildRequest) (*pb.Build, error)

UpdateBuild handles a request to update a build. Implements pb.UpdateBuild.

type CreateBuildChecker

type CreateBuildChecker struct{}

func (*CreateBuildChecker) Process

type SetBuilderHealthChecker

type SetBuilderHealthChecker struct{}

func (*SetBuilderHealthChecker) Process

Directories

Path Synopsis
Package testutil contains util functions for testing buildbucket RPCs.
Package testutil contains util functions for testing buildbucket RPCs.

Jump to

Keyboard shortcuts

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