buildbot

package
v0.0.0-...-1643519 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

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

Functions

func FileDescriptorSet

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

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

func (*Build) Descriptor

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

func (*Build) GetBuilder

func (m *Build) GetBuilder() string

func (*Build) GetMaster

func (m *Build) GetMaster() string

func (*Build) GetNumber

func (m *Build) GetNumber() int32

func (*Build) GetState

func (m *Build) GetState() BuildState

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) Reset

func (m *Build) Reset()

func (*Build) String

func (m *Build) String() string

func (*Build) XXX_DiscardUnknown

func (m *Build) XXX_DiscardUnknown()

func (*Build) XXX_Marshal

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

func (*Build) XXX_Merge

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

func (*Build) XXX_Size

func (m *Build) XXX_Size() int

func (*Build) XXX_Unmarshal

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

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

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

func (BuildState) String

func (x BuildState) String() string

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

ScheduleRequest defines builds to schedule.

func (*ScheduleRequest) Descriptor

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

func (*ScheduleRequest) GetBuilds

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

func (*ScheduleRequest) GetMaster

func (m *ScheduleRequest) GetMaster() string

func (*ScheduleRequest) ProtoMessage

func (*ScheduleRequest) ProtoMessage()

func (*ScheduleRequest) Reset

func (m *ScheduleRequest) Reset()

func (*ScheduleRequest) String

func (m *ScheduleRequest) String() string

func (*ScheduleRequest) XXX_DiscardUnknown

func (m *ScheduleRequest) XXX_DiscardUnknown()

func (*ScheduleRequest) XXX_Marshal

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

func (*ScheduleRequest) XXX_Merge

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

func (*ScheduleRequest) XXX_Size

func (m *ScheduleRequest) XXX_Size() int

func (*ScheduleRequest) XXX_Unmarshal

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

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

Build is a build to schedule.

func (*ScheduleRequest_BuildDef) Descriptor

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

func (*ScheduleRequest_BuildDef) GetBlamelist

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

func (*ScheduleRequest_BuildDef) GetBranch

func (m *ScheduleRequest_BuildDef) GetBranch() string

func (*ScheduleRequest_BuildDef) GetBuilder

func (m *ScheduleRequest_BuildDef) GetBuilder() string

func (*ScheduleRequest_BuildDef) GetProperties

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

func (*ScheduleRequest_BuildDef) GetRevision

func (m *ScheduleRequest_BuildDef) GetRevision() string

func (*ScheduleRequest_BuildDef) ProtoMessage

func (*ScheduleRequest_BuildDef) ProtoMessage()

func (*ScheduleRequest_BuildDef) Reset

func (m *ScheduleRequest_BuildDef) Reset()

func (*ScheduleRequest_BuildDef) String

func (m *ScheduleRequest_BuildDef) String() string

func (*ScheduleRequest_BuildDef) XXX_DiscardUnknown

func (m *ScheduleRequest_BuildDef) XXX_DiscardUnknown()

func (*ScheduleRequest_BuildDef) XXX_Marshal

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

func (*ScheduleRequest_BuildDef) XXX_Merge

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

func (*ScheduleRequest_BuildDef) XXX_Size

func (m *ScheduleRequest_BuildDef) XXX_Size() int

func (*ScheduleRequest_BuildDef) XXX_Unmarshal

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

type ScheduleResponse

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

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

func (*ScheduleResponse) GetBuilds

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

func (*ScheduleResponse) ProtoMessage

func (*ScheduleResponse) ProtoMessage()

func (*ScheduleResponse) Reset

func (m *ScheduleResponse) Reset()

func (*ScheduleResponse) String

func (m *ScheduleResponse) String() string

func (*ScheduleResponse) XXX_DiscardUnknown

func (m *ScheduleResponse) XXX_DiscardUnknown()

func (*ScheduleResponse) XXX_Marshal

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

func (*ScheduleResponse) XXX_Merge

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

func (*ScheduleResponse) XXX_Size

func (m *ScheduleResponse) XXX_Size() int

func (*ScheduleResponse) XXX_Unmarshal

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

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

SearchReqeust specifies a search criteria.

func (*SearchRequest) Descriptor

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

func (*SearchRequest) GetBuilder

func (m *SearchRequest) GetBuilder() string

func (*SearchRequest) GetMaster

func (m *SearchRequest) GetMaster() string

func (*SearchRequest) GetState

func (m *SearchRequest) GetState() BuildState

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset

func (m *SearchRequest) Reset()

func (*SearchRequest) String

func (m *SearchRequest) String() string

func (*SearchRequest) XXX_DiscardUnknown

func (m *SearchRequest) XXX_DiscardUnknown()

func (*SearchRequest) XXX_Marshal

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

func (*SearchRequest) XXX_Merge

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

func (*SearchRequest) XXX_Size

func (m *SearchRequest) XXX_Size() int

func (*SearchRequest) XXX_Unmarshal

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

type SearchResponse

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

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

func (*SearchResponse) GetBuilds

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

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) Reset

func (m *SearchResponse) Reset()

func (*SearchResponse) String

func (m *SearchResponse) String() string

func (*SearchResponse) XXX_DiscardUnknown

func (m *SearchResponse) XXX_DiscardUnknown()

func (*SearchResponse) XXX_Marshal

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

func (*SearchResponse) XXX_Merge

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

func (*SearchResponse) XXX_Size

func (m *SearchResponse) XXX_Size() int

func (*SearchResponse) XXX_Unmarshal

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL