Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildState_name = map[int32]string{
		0: "UNSET",
		1: "PENDING",
		2: "RUNNING",
		3: "SUCCESS",
		4: "FAILURE",
		5: "EXCEPTION",
	}
	BuildState_value = map[string]int32{
		"UNSET":     0,
		"PENDING":   1,
		"RUNNING":   2,
		"SUCCESS":   3,
		"FAILURE":   4,
		"EXCEPTION": 5,
	}
)

    Enum value maps for BuildState.

    View Source
    var File_go_chromium_org_luci_grpc_prpc_talk_buildbot_proto_buildbot_proto protoreflect.FileDescriptor

    Functions

    func FileDescriptorSet

    func FileDescriptorSet() *descriptorpb.FileDescriptorSet

      FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

      Will not return nil.

      Do NOT modify the returned descriptor.

      func RegisterBuildbotServer

      func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer)

      Types

      type Build

      type Build struct {
      	Master  string     `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
      	Builder string     `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"`
      	Number  int32      `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`
      	State   BuildState `protobuf:"varint,4,opt,name=state,proto3,enum=buildbot.BuildState" json:"state,omitempty"`
      	// contains filtered or unexported fields
      }

      func (*Build) Descriptor

      func (*Build) Descriptor() ([]byte, []int)

        Deprecated: Use Build.ProtoReflect.Descriptor instead.

        func (*Build) GetBuilder

        func (x *Build) GetBuilder() string

        func (*Build) GetMaster

        func (x *Build) GetMaster() string

        func (*Build) GetNumber

        func (x *Build) GetNumber() int32

        func (*Build) GetState

        func (x *Build) GetState() BuildState

        func (*Build) ProtoMessage

        func (*Build) ProtoMessage()

        func (*Build) ProtoReflect

        func (x *Build) ProtoReflect() protoreflect.Message

        func (*Build) Reset

        func (x *Build) Reset()

        func (*Build) String

        func (x *Build) String() string

        type BuildState

        type BuildState int32
        const (
        	BuildState_UNSET     BuildState = 0
        	BuildState_PENDING   BuildState = 1
        	BuildState_RUNNING   BuildState = 2
        	BuildState_SUCCESS   BuildState = 3
        	BuildState_FAILURE   BuildState = 4
        	BuildState_EXCEPTION BuildState = 5
        )

        func (BuildState) Descriptor

        func (BuildState) Descriptor() protoreflect.EnumDescriptor

        func (BuildState) Enum

        func (x BuildState) Enum() *BuildState

        func (BuildState) EnumDescriptor

        func (BuildState) EnumDescriptor() ([]byte, []int)

          Deprecated: Use BuildState.Descriptor instead.

          func (BuildState) Number

          func (x BuildState) Number() protoreflect.EnumNumber

          func (BuildState) String

          func (x BuildState) String() string

          func (BuildState) Type

          type BuildbotClient

          type BuildbotClient interface {
          	// Search returns builds matching a criteria.
          	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
          	// Schedule puts new builds to a queue.
          	Schedule(ctx context.Context, in *ScheduleRequest, opts ...grpc.CallOption) (*ScheduleResponse, error)
          }

            BuildbotClient is the client API for Buildbot service.

            For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

            func NewBuildbotClient

            func NewBuildbotClient(cc grpc.ClientConnInterface) BuildbotClient

            func NewBuildbotPRPCClient

            func NewBuildbotPRPCClient(client *prpc.Client) BuildbotClient

            type BuildbotServer

            type BuildbotServer interface {
            	// Search returns builds matching a criteria.
            	Search(context.Context, *SearchRequest) (*SearchResponse, error)
            	// Schedule puts new builds to a queue.
            	Schedule(context.Context, *ScheduleRequest) (*ScheduleResponse, error)
            }

              BuildbotServer is the server API for Buildbot service.

              type DecoratedBuildbot

              type DecoratedBuildbot struct {
              	// Service is the service to decorate.
              	Service BuildbotServer
              	// Prelude is called in each method before forwarding the call to Service.
              	// If Prelude returns an error, it is returned without forwrading the call.
              	Prelude func(c context.Context, methodName string, req proto.Message) (context.Context, error)
              }

              func (*DecoratedBuildbot) Schedule

              func (*DecoratedBuildbot) Search

              type ScheduleRequest

              type ScheduleRequest struct {
              
              	// Master is a "master.XXX" string that defines where to schedule builds.
              	Master string `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
              	// Builds is a list of builds to schedule.
              	Builds []*ScheduleRequest_BuildDef `protobuf:"bytes,2,rep,name=builds,proto3" json:"builds,omitempty"`
              	// contains filtered or unexported fields
              }

                ScheduleRequest defines builds to schedule.

                func (*ScheduleRequest) Descriptor

                func (*ScheduleRequest) Descriptor() ([]byte, []int)

                  Deprecated: Use ScheduleRequest.ProtoReflect.Descriptor instead.

                  func (*ScheduleRequest) GetBuilds

                  func (x *ScheduleRequest) GetBuilds() []*ScheduleRequest_BuildDef

                  func (*ScheduleRequest) GetMaster

                  func (x *ScheduleRequest) GetMaster() string

                  func (*ScheduleRequest) ProtoMessage

                  func (*ScheduleRequest) ProtoMessage()

                  func (*ScheduleRequest) ProtoReflect

                  func (x *ScheduleRequest) ProtoReflect() protoreflect.Message

                  func (*ScheduleRequest) Reset

                  func (x *ScheduleRequest) Reset()

                  func (*ScheduleRequest) String

                  func (x *ScheduleRequest) String() string

                  type ScheduleRequest_BuildDef

                  type ScheduleRequest_BuildDef struct {
                  
                  	// Builder defines the build script.
                  	Builder string `protobuf:"bytes,1,opt,name=builder,proto3" json:"builder,omitempty"`
                  	// Branch defines what to fetch.
                  	Branch string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
                  	// Revision is a commit hash to checkout
                  	Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
                  	// Properties are "key:value" pairs.
                  	Properties []string `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty"`
                  	// Blamelist is a list of user email addressed to blame if this build
                  	// fails.
                  	Blamelist []string `protobuf:"bytes,5,rep,name=blamelist,proto3" json:"blamelist,omitempty"`
                  	// contains filtered or unexported fields
                  }

                    Build is a build to schedule.

                    func (*ScheduleRequest_BuildDef) Descriptor

                    func (*ScheduleRequest_BuildDef) Descriptor() ([]byte, []int)

                      Deprecated: Use ScheduleRequest_BuildDef.ProtoReflect.Descriptor instead.

                      func (*ScheduleRequest_BuildDef) GetBlamelist

                      func (x *ScheduleRequest_BuildDef) GetBlamelist() []string

                      func (*ScheduleRequest_BuildDef) GetBranch

                      func (x *ScheduleRequest_BuildDef) GetBranch() string

                      func (*ScheduleRequest_BuildDef) GetBuilder

                      func (x *ScheduleRequest_BuildDef) GetBuilder() string

                      func (*ScheduleRequest_BuildDef) GetProperties

                      func (x *ScheduleRequest_BuildDef) GetProperties() []string

                      func (*ScheduleRequest_BuildDef) GetRevision

                      func (x *ScheduleRequest_BuildDef) GetRevision() string

                      func (*ScheduleRequest_BuildDef) ProtoMessage

                      func (*ScheduleRequest_BuildDef) ProtoMessage()

                      func (*ScheduleRequest_BuildDef) ProtoReflect

                      func (x *ScheduleRequest_BuildDef) ProtoReflect() protoreflect.Message

                      func (*ScheduleRequest_BuildDef) Reset

                      func (x *ScheduleRequest_BuildDef) Reset()

                      func (*ScheduleRequest_BuildDef) String

                      func (x *ScheduleRequest_BuildDef) String() string

                      type ScheduleResponse

                      type ScheduleResponse struct {
                      	Builds []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
                      	// contains filtered or unexported fields
                      }

                        HelloReply contains a greeting.

                        func (*ScheduleResponse) Descriptor

                        func (*ScheduleResponse) Descriptor() ([]byte, []int)

                          Deprecated: Use ScheduleResponse.ProtoReflect.Descriptor instead.

                          func (*ScheduleResponse) GetBuilds

                          func (x *ScheduleResponse) GetBuilds() []*Build

                          func (*ScheduleResponse) ProtoMessage

                          func (*ScheduleResponse) ProtoMessage()

                          func (*ScheduleResponse) ProtoReflect

                          func (x *ScheduleResponse) ProtoReflect() protoreflect.Message

                          func (*ScheduleResponse) Reset

                          func (x *ScheduleResponse) Reset()

                          func (*ScheduleResponse) String

                          func (x *ScheduleResponse) String() string

                          type SearchRequest

                          type SearchRequest struct {
                          
                          	// Master filters by master name, e.g. "master.XXX".
                          	Master string `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
                          	// State filters by build state.
                          	State BuildState `protobuf:"varint,2,opt,name=state,proto3,enum=buildbot.BuildState" json:"state,omitempty"`
                          	// Builder filters by builder name.
                          	Builder string `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"`
                          	// contains filtered or unexported fields
                          }

                            SearchReqeust specifies a search criteria.

                            func (*SearchRequest) Descriptor

                            func (*SearchRequest) Descriptor() ([]byte, []int)

                              Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

                              func (*SearchRequest) GetBuilder

                              func (x *SearchRequest) GetBuilder() string

                              func (*SearchRequest) GetMaster

                              func (x *SearchRequest) GetMaster() string

                              func (*SearchRequest) GetState

                              func (x *SearchRequest) GetState() BuildState

                              func (*SearchRequest) ProtoMessage

                              func (*SearchRequest) ProtoMessage()

                              func (*SearchRequest) ProtoReflect

                              func (x *SearchRequest) ProtoReflect() protoreflect.Message

                              func (*SearchRequest) Reset

                              func (x *SearchRequest) Reset()

                              func (*SearchRequest) String

                              func (x *SearchRequest) String() string

                              type SearchResponse

                              type SearchResponse struct {
                              	Builds []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
                              	// contains filtered or unexported fields
                              }

                              func (*SearchResponse) Descriptor

                              func (*SearchResponse) Descriptor() ([]byte, []int)

                                Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

                                func (*SearchResponse) GetBuilds

                                func (x *SearchResponse) GetBuilds() []*Build

                                func (*SearchResponse) ProtoMessage

                                func (*SearchResponse) ProtoMessage()

                                func (*SearchResponse) ProtoReflect

                                func (x *SearchResponse) ProtoReflect() protoreflect.Message

                                func (*SearchResponse) Reset

                                func (x *SearchResponse) Reset()

                                func (*SearchResponse) String

                                func (x *SearchResponse) String() string

                                type UnimplementedBuildbotServer

                                type UnimplementedBuildbotServer struct {
                                }

                                  UnimplementedBuildbotServer can be embedded to have forward compatible implementations.

                                  func (*UnimplementedBuildbotServer) Schedule

                                  func (*UnimplementedBuildbotServer) Search

                                  type VersionedBuildbot

                                  type VersionedBuildbot struct {
                                  	// Default is the version used if X-Luci-Service-Version metadata
                                  	// is not present.
                                  	Default string
                                  	// Impls maps versions to service implementations.
                                  	Impls map[string]BuildbotServer
                                  }

                                  func (*VersionedBuildbot) Schedule

                                  func (*VersionedBuildbot) Search