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",
}
var BuildState_value = map[string]int32{
    "UNSET":     0,
    "PENDING":   1,
    "RUNNING":   2,
    "SUCCESS":   3,
    "FAILURE":   4,
    "EXCEPTION": 5,
}

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.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"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

func (*Build) Descriptor Uses

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

func (*Build) GetBuilder Uses

func (m *Build) GetBuilder() string

func (*Build) GetMaster Uses

func (m *Build) GetMaster() string

func (*Build) GetNumber Uses

func (m *Build) GetNumber() int32

func (*Build) GetState Uses

func (m *Build) GetState() BuildState

func (*Build) ProtoMessage Uses

func (*Build) ProtoMessage()

func (*Build) Reset Uses

func (m *Build) Reset()

func (*Build) String Uses

func (m *Build) String() string

func (*Build) XXX_DiscardUnknown Uses

func (m *Build) XXX_DiscardUnknown()

func (*Build) XXX_Marshal Uses

func (m *Build) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Build) XXX_Merge Uses

func (m *Build) XXX_Merge(src proto.Message)

func (*Build) XXX_Size Uses

func (m *Build) XXX_Size() int

func (*Build) XXX_Unmarshal Uses

func (m *Build) XXX_Unmarshal(b []byte) error

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

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

func (BuildState) String Uses

func (x BuildState) String() string

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.ClientConn) 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"`
    XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
    XXX_unrecognized     []byte                      `json:"-"`
    XXX_sizecache        int32                       `json:"-"`
}

ScheduleRequest defines builds to schedule.

func (*ScheduleRequest) Descriptor Uses

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

func (*ScheduleRequest) GetBuilds Uses

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

func (*ScheduleRequest) GetMaster Uses

func (m *ScheduleRequest) GetMaster() string

func (*ScheduleRequest) ProtoMessage Uses

func (*ScheduleRequest) ProtoMessage()

func (*ScheduleRequest) Reset Uses

func (m *ScheduleRequest) Reset()

func (*ScheduleRequest) String Uses

func (m *ScheduleRequest) String() string

func (*ScheduleRequest) XXX_DiscardUnknown Uses

func (m *ScheduleRequest) XXX_DiscardUnknown()

func (*ScheduleRequest) XXX_Marshal Uses

func (m *ScheduleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScheduleRequest) XXX_Merge Uses

func (m *ScheduleRequest) XXX_Merge(src proto.Message)

func (*ScheduleRequest) XXX_Size Uses

func (m *ScheduleRequest) XXX_Size() int

func (*ScheduleRequest) XXX_Unmarshal Uses

func (m *ScheduleRequest) XXX_Unmarshal(b []byte) error

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Build is a build to schedule.

func (*ScheduleRequest_BuildDef) Descriptor Uses

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

func (*ScheduleRequest_BuildDef) GetBlamelist Uses

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

func (*ScheduleRequest_BuildDef) GetBranch Uses

func (m *ScheduleRequest_BuildDef) GetBranch() string

func (*ScheduleRequest_BuildDef) GetBuilder Uses

func (m *ScheduleRequest_BuildDef) GetBuilder() string

func (*ScheduleRequest_BuildDef) GetProperties Uses

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

func (*ScheduleRequest_BuildDef) GetRevision Uses

func (m *ScheduleRequest_BuildDef) GetRevision() string

func (*ScheduleRequest_BuildDef) ProtoMessage Uses

func (*ScheduleRequest_BuildDef) ProtoMessage()

func (*ScheduleRequest_BuildDef) Reset Uses

func (m *ScheduleRequest_BuildDef) Reset()

func (*ScheduleRequest_BuildDef) String Uses

func (m *ScheduleRequest_BuildDef) String() string

func (*ScheduleRequest_BuildDef) XXX_DiscardUnknown Uses

func (m *ScheduleRequest_BuildDef) XXX_DiscardUnknown()

func (*ScheduleRequest_BuildDef) XXX_Marshal Uses

func (m *ScheduleRequest_BuildDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScheduleRequest_BuildDef) XXX_Merge Uses

func (m *ScheduleRequest_BuildDef) XXX_Merge(src proto.Message)

func (*ScheduleRequest_BuildDef) XXX_Size Uses

func (m *ScheduleRequest_BuildDef) XXX_Size() int

func (*ScheduleRequest_BuildDef) XXX_Unmarshal Uses

func (m *ScheduleRequest_BuildDef) XXX_Unmarshal(b []byte) error

type ScheduleResponse Uses

type ScheduleResponse struct {
    Builds               []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

HelloReply contains a greeting.

func (*ScheduleResponse) Descriptor Uses

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

func (*ScheduleResponse) GetBuilds Uses

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

func (*ScheduleResponse) ProtoMessage Uses

func (*ScheduleResponse) ProtoMessage()

func (*ScheduleResponse) Reset Uses

func (m *ScheduleResponse) Reset()

func (*ScheduleResponse) String Uses

func (m *ScheduleResponse) String() string

func (*ScheduleResponse) XXX_DiscardUnknown Uses

func (m *ScheduleResponse) XXX_DiscardUnknown()

func (*ScheduleResponse) XXX_Marshal Uses

func (m *ScheduleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScheduleResponse) XXX_Merge Uses

func (m *ScheduleResponse) XXX_Merge(src proto.Message)

func (*ScheduleResponse) XXX_Size Uses

func (m *ScheduleResponse) XXX_Size() int

func (*ScheduleResponse) XXX_Unmarshal Uses

func (m *ScheduleResponse) XXX_Unmarshal(b []byte) error

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

SearchReqeust specifies a search criteria.

func (*SearchRequest) Descriptor Uses

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

func (*SearchRequest) GetBuilder Uses

func (m *SearchRequest) GetBuilder() string

func (*SearchRequest) GetMaster Uses

func (m *SearchRequest) GetMaster() string

func (*SearchRequest) GetState Uses

func (m *SearchRequest) GetState() BuildState

func (*SearchRequest) ProtoMessage Uses

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset Uses

func (m *SearchRequest) Reset()

func (*SearchRequest) String Uses

func (m *SearchRequest) String() string

func (*SearchRequest) XXX_DiscardUnknown Uses

func (m *SearchRequest) XXX_DiscardUnknown()

func (*SearchRequest) XXX_Marshal Uses

func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchRequest) XXX_Merge Uses

func (m *SearchRequest) XXX_Merge(src proto.Message)

func (*SearchRequest) XXX_Size Uses

func (m *SearchRequest) XXX_Size() int

func (*SearchRequest) XXX_Unmarshal Uses

func (m *SearchRequest) XXX_Unmarshal(b []byte) error

type SearchResponse Uses

type SearchResponse struct {
    Builds               []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SearchResponse) Descriptor Uses

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

func (*SearchResponse) GetBuilds Uses

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

func (*SearchResponse) ProtoMessage Uses

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) Reset Uses

func (m *SearchResponse) Reset()

func (*SearchResponse) String Uses

func (m *SearchResponse) String() string

func (*SearchResponse) XXX_DiscardUnknown Uses

func (m *SearchResponse) XXX_DiscardUnknown()

func (*SearchResponse) XXX_Marshal Uses

func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchResponse) XXX_Merge Uses

func (m *SearchResponse) XXX_Merge(src proto.Message)

func (*SearchResponse) XXX_Size Uses

func (m *SearchResponse) XXX_Size() int

func (*SearchResponse) XXX_Unmarshal Uses

func (m *SearchResponse) XXX_Unmarshal(b []byte) 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 10 packages (graph) and is imported by 2 packages. Updated 2018-12-19. Refresh now. Tools for package owners.