Documentation ¶
Overview ¶
Package rpc contains rpc service implementation.
Index ¶
- Constants
- func NewBuilders() pb.BuildersServer
- func NewBuilds() pb.BuildsServer
- type Builders
- func (*Builders) GetBuilder(ctx context.Context, req *pb.GetBuilderRequest) (*pb.BuilderItem, error)
- func (*Builders) ListBuilders(ctx context.Context, req *pb.ListBuildersRequest) (*pb.ListBuildersResponse, error)
- func (*Builders) SetBuilderHealth(ctx context.Context, req *pb.SetBuilderHealthRequest) (*pb.SetBuilderHealthResponse, error)
- type Builds
- func (b *Builds) Batch(ctx context.Context, req *pb.BatchRequest) (*pb.BatchResponse, error)
- func (*Builds) CancelBuild(ctx context.Context, req *pb.CancelBuildRequest) (*pb.Build, error)
- func (*Builds) CreateBuild(ctx context.Context, req *pb.CreateBuildRequest) (*pb.Build, error)
- func (*Builds) CustomMetricPreview(ctx context.Context, req *pb.CustomMetricPreviewRequest) (*pb.CustomMetricPreviewResponse, error)
- func (*Builds) GetBuild(ctx context.Context, req *pb.GetBuildRequest) (*pb.Build, error)
- func (*Builds) GetBuildStatus(ctx context.Context, req *pb.GetBuildStatusRequest) (*pb.Build, error)
- func (*Builds) ScheduleBuild(ctx context.Context, req *pb.ScheduleBuildRequest) (*pb.Build, error)
- func (*Builds) SearchBuilds(ctx context.Context, req *pb.SearchBuildsRequest) (*pb.SearchBuildsResponse, error)
- func (*Builds) StartBuild(ctx context.Context, req *pb.StartBuildRequest) (*pb.StartBuildResponse, error)
- func (*Builds) SynthesizeBuild(ctx context.Context, req *pb.SynthesizeBuildRequest) (*pb.Build, error)
- func (*Builds) UpdateBuild(ctx context.Context, req *pb.UpdateBuildRequest) (*pb.Build, error)
- type CreateBuildChecker
- type SetBuilderHealthChecker
Constants ¶
const ( TagNew tagValidationMode = iota TagAppend )
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.
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 ¶
func (*Builders) ListBuilders(ctx context.Context, req *pb.ListBuildersRequest) (*pb.ListBuildersResponse, error)
ListBuilders handles a request to retrieve builders. Implements pb.BuildersServer.
func (*Builders) SetBuilderHealth ¶
func (*Builders) SetBuilderHealth(ctx context.Context, req *pb.SetBuilderHealthRequest) (*pb.SetBuilderHealthResponse, error)
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 ¶
CancelBuild handles a request to cancel a build. Implements pb.BuildsServer.
func (*Builds) CreateBuild ¶
CreateBuild handles a request to create a build. Implements pb.BuildsServer.
func (*Builds) CustomMetricPreview ¶
func (*Builds) CustomMetricPreview(ctx context.Context, req *pb.CustomMetricPreviewRequest) (*pb.CustomMetricPreviewResponse, error)
CustomMetricPreview evaluates a build with a custom metric definition and returns the preview result. Implements pb.BuildsServer.
func (*Builds) GetBuild ¶
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 ¶
ScheduleBuild handles a request to schedule a build. Implements pb.BuildsServer.
func (*Builds) SearchBuilds ¶
func (*Builds) SearchBuilds(ctx context.Context, req *pb.SearchBuildsRequest) (*pb.SearchBuildsResponse, error)
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 ¶
UpdateBuild handles a request to update a build. Implements pb.UpdateBuild.
type CreateBuildChecker ¶
type CreateBuildChecker struct{}
func (*CreateBuildChecker) Process ¶
func (*CreateBuildChecker) Process(field protoreflect.FieldDescriptor, msg protoreflect.Message) (data protowalk.ResultData, applied bool)
type SetBuilderHealthChecker ¶
type SetBuilderHealthChecker struct{}
func (*SetBuilderHealthChecker) Process ¶
func (*SetBuilderHealthChecker) Process(field protoreflect.FieldDescriptor, msg protoreflect.Message) (data protowalk.ResultData, applied bool)