luci: Index | Files

package rpc

import ""

Package rpc contains rpc service implementation.


Package Files

batch.go build_events.go builders.go builds.go cancel_build.go common.go doc.go get_build.go get_builder.go list_builders.go notification.go schedule_build.go search_builds.go update_build.go


const (
    TagNew tagValidationMode = iota
const (

    // BuildTokenKey is the key of the gRPC request header where the auth token should be
    // specified.
    // It's used to authenticate build messages, such as UpdateBuild request,
    BuildTokenKey = "x-build-token"

func NewBuilders Uses

func NewBuilders() pb.BuildersServer

NewBuilders returns a new pb.BuildersServer.

func NewBuilds Uses

func NewBuilds() pb.BuildsServer

NewBuilds returns a new pb.BuildsServer.

type Builders Uses

type Builders struct{}

Builders implements pb.BuildersServer.

func (*Builders) GetBuilder Uses

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 Uses

func (*Builders) ListBuilders(ctx context.Context, req *pb.ListBuildersRequest) (*pb.ListBuildersResponse, error)

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

type Builds Uses

type Builds struct {

Builds implements pb.BuildsServer.

func (*Builds) Batch Uses

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

Batch handles a batch request. Implements pb.BuildsServer.

func (*Builds) CancelBuild Uses

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) GetBuild Uses

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) ScheduleBuild Uses

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 Uses

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) UpdateBuild Uses

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

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

Package rpc imports 37 packages (graph) and is imported by 1 packages. Updated 2021-01-17. Refresh now. Tools for package owners.