luci: go.chromium.org/luci/grpc/prpc/talk/buildbot/proto Index | Files

package buildbot

import "go.chromium.org/luci/grpc/prpc/talk/buildbot/proto"

Index

Package Files

buildbot.pb.go buildbotserver_dec.go buildbotserver_mux.go generate.go pb.discovery.go

Variables

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.

var File_go_chromium_org_luci_grpc_prpc_talk_buildbot_proto_buildbot_proto protoreflect.FileDescriptor

func FileDescriptorSet Uses

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 Uses

func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer)

type Build Uses

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 Uses

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

Deprecated: Use Build.ProtoReflect.Descriptor instead.

func (*Build) GetBuilder Uses

func (x *Build) GetBuilder() string

func (*Build) GetMaster Uses

func (x *Build) GetMaster() string

func (*Build) GetNumber Uses

func (x *Build) GetNumber() int32

func (*Build) GetState Uses

func (x *Build) GetState() BuildState

func (*Build) ProtoMessage Uses

func (*Build) ProtoMessage()

func (*Build) ProtoReflect Uses

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

func (*Build) Reset Uses

func (x *Build) Reset()

func (*Build) String Uses

func (x *Build) String() string

type BuildState Uses

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 Uses

func (BuildState) Descriptor() protoreflect.EnumDescriptor

func (BuildState) Enum Uses

func (x BuildState) Enum() *BuildState

func (BuildState) EnumDescriptor Uses

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

Deprecated: Use BuildState.Descriptor instead.

func (BuildState) Number Uses

func (x BuildState) Number() protoreflect.EnumNumber

func (BuildState) String Uses

func (x BuildState) String() string

func (BuildState) Type Uses

func (BuildState) Type() protoreflect.EnumType

type BuildbotClient Uses

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 Uses

func NewBuildbotClient(cc grpc.ClientConnInterface) BuildbotClient

func NewBuildbotPRPCClient Uses

func NewBuildbotPRPCClient(client *prpc.Client) BuildbotClient

type BuildbotServer Uses

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 Uses

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 Uses

func (s *DecoratedBuildbot) Schedule(c context.Context, req *ScheduleRequest) (*ScheduleResponse, error)

func (*DecoratedBuildbot) Search Uses

func (s *DecoratedBuildbot) Search(c context.Context, req *SearchRequest) (*SearchResponse, error)

type ScheduleRequest Uses

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 Uses

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

Deprecated: Use ScheduleRequest.ProtoReflect.Descriptor instead.

func (*ScheduleRequest) GetBuilds Uses

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

func (*ScheduleRequest) GetMaster Uses

func (x *ScheduleRequest) GetMaster() string

func (*ScheduleRequest) ProtoMessage Uses

func (*ScheduleRequest) ProtoMessage()

func (*ScheduleRequest) ProtoReflect Uses

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

func (*ScheduleRequest) Reset Uses

func (x *ScheduleRequest) Reset()

func (*ScheduleRequest) String Uses

func (x *ScheduleRequest) String() string

type ScheduleRequest_BuildDef Uses

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 Uses

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

Deprecated: Use ScheduleRequest_BuildDef.ProtoReflect.Descriptor instead.

func (*ScheduleRequest_BuildDef) GetBlamelist Uses

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

func (*ScheduleRequest_BuildDef) GetBranch Uses

func (x *ScheduleRequest_BuildDef) GetBranch() string

func (*ScheduleRequest_BuildDef) GetBuilder Uses

func (x *ScheduleRequest_BuildDef) GetBuilder() string

func (*ScheduleRequest_BuildDef) GetProperties Uses

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

func (*ScheduleRequest_BuildDef) GetRevision Uses

func (x *ScheduleRequest_BuildDef) GetRevision() string

func (*ScheduleRequest_BuildDef) ProtoMessage Uses

func (*ScheduleRequest_BuildDef) ProtoMessage()

func (*ScheduleRequest_BuildDef) ProtoReflect Uses

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

func (*ScheduleRequest_BuildDef) Reset Uses

func (x *ScheduleRequest_BuildDef) Reset()

func (*ScheduleRequest_BuildDef) String Uses

func (x *ScheduleRequest_BuildDef) String() string

type ScheduleResponse Uses

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 Uses

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

Deprecated: Use ScheduleResponse.ProtoReflect.Descriptor instead.

func (*ScheduleResponse) GetBuilds Uses

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

func (*ScheduleResponse) ProtoMessage Uses

func (*ScheduleResponse) ProtoMessage()

func (*ScheduleResponse) ProtoReflect Uses

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

func (*ScheduleResponse) Reset Uses

func (x *ScheduleResponse) Reset()

func (*ScheduleResponse) String Uses

func (x *ScheduleResponse) String() string

type SearchRequest Uses

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 Uses

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetBuilder Uses

func (x *SearchRequest) GetBuilder() string

func (*SearchRequest) GetMaster Uses

func (x *SearchRequest) GetMaster() string

func (*SearchRequest) GetState Uses

func (x *SearchRequest) GetState() BuildState

func (*SearchRequest) ProtoMessage Uses

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect Uses

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

func (*SearchRequest) Reset Uses

func (x *SearchRequest) Reset()

func (*SearchRequest) String Uses

func (x *SearchRequest) String() string

type SearchResponse Uses

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

func (*SearchResponse) Descriptor Uses

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetBuilds Uses

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

func (*SearchResponse) ProtoMessage Uses

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect Uses

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

func (*SearchResponse) Reset Uses

func (x *SearchResponse) Reset()

func (*SearchResponse) String Uses

func (x *SearchResponse) String() string

type UnimplementedBuildbotServer Uses

type UnimplementedBuildbotServer struct {
}

UnimplementedBuildbotServer can be embedded to have forward compatible implementations.

func (*UnimplementedBuildbotServer) Schedule Uses

func (*UnimplementedBuildbotServer) Schedule(context.Context, *ScheduleRequest) (*ScheduleResponse, error)

func (*UnimplementedBuildbotServer) Search Uses

func (*UnimplementedBuildbotServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)

type VersionedBuildbot Uses

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 Uses

func (s *VersionedBuildbot) Schedule(c context.Context, req *ScheduleRequest) (*ScheduleResponse, error)

func (*VersionedBuildbot) Search Uses

func (s *VersionedBuildbot) Search(c context.Context, req *SearchRequest) (*SearchResponse, error)

Package buildbot imports 14 packages (graph) and is imported by 2 packages. Updated 2020-10-28. Refresh now. Tools for package owners.