milo

package
v0.0.0-...-678bb0e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package milo is a generated protocol buffer package.

It is generated from these files:

github.com/luci/luci-go/milo/api/proto/buildbot.proto
github.com/luci/luci-go/milo/api/proto/buildinfo.proto
github.com/luci/luci-go/milo/api/proto/console_git_info.proto

It has these top-level messages:

MasterRequest
CompressedMasterJSON
BuildbotBuildRequest
BuildbotBuildJSON
BuildbotBuildsRequest
BuildbotBuildsJSON
BuildInfoRequest
BuildInfoResponse
ConsoleGitInfo

Index

Constants

This section is empty.

Variables

This section is empty.

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 RegisterBuildInfoServer

func RegisterBuildInfoServer(s prpc.Registrar, srv BuildInfoServer)

func RegisterBuildbotServer

func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer)

Types

type BuildInfoClient

type BuildInfoClient interface {
	Get(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error)
}

func NewBuildInfoClient

func NewBuildInfoClient(cc *grpc.ClientConn) BuildInfoClient

func NewBuildInfoPRPCClient

func NewBuildInfoPRPCClient(client *prpc.Client) BuildInfoClient

type BuildInfoRequest

type BuildInfoRequest struct {
	// Types that are valid to be assigned to Build:
	//	*BuildInfoRequest_Buildbot
	//	*BuildInfoRequest_Swarming_
	Build isBuildInfoRequest_Build `protobuf_oneof:"build"`
	// Project hint is a LUCI project suggestion for this build. Some builds,
	// notably older ones, may not contain enough metadata to resolve their
	// project. Resolution may succeed if this hint is provided and correct.
	//
	// This field is optional, and its use is discouraged unless necessary.
	ProjectHint string `protobuf:"bytes,11,opt,name=project_hint,json=projectHint" json:"project_hint,omitempty"`
}

func (*BuildInfoRequest) Descriptor

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

func (*BuildInfoRequest) GetBuild

func (m *BuildInfoRequest) GetBuild() isBuildInfoRequest_Build

func (*BuildInfoRequest) GetBuildbot

func (m *BuildInfoRequest) GetBuildbot() *BuildInfoRequest_BuildBot

func (*BuildInfoRequest) GetProjectHint

func (m *BuildInfoRequest) GetProjectHint() string

func (*BuildInfoRequest) GetSwarming

func (m *BuildInfoRequest) GetSwarming() *BuildInfoRequest_Swarming

func (*BuildInfoRequest) ProtoMessage

func (*BuildInfoRequest) ProtoMessage()

func (*BuildInfoRequest) Reset

func (m *BuildInfoRequest) Reset()

func (*BuildInfoRequest) String

func (m *BuildInfoRequest) String() string

func (*BuildInfoRequest) XXX_OneofFuncs

func (*BuildInfoRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BuildInfoRequest_BuildBot

type BuildInfoRequest_BuildBot struct {
	// The master name.
	MasterName string `protobuf:"bytes,1,opt,name=master_name,json=masterName" json:"master_name,omitempty"`
	// The builder name server.
	BuilderName string `protobuf:"bytes,2,opt,name=builder_name,json=builderName" json:"builder_name,omitempty"`
	// The build number.
	BuildNumber int64 `protobuf:"varint,3,opt,name=build_number,json=buildNumber" json:"build_number,omitempty"`
}

The request for the name of a BuildBot built.

func (*BuildInfoRequest_BuildBot) Descriptor

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

func (*BuildInfoRequest_BuildBot) GetBuildNumber

func (m *BuildInfoRequest_BuildBot) GetBuildNumber() int64

func (*BuildInfoRequest_BuildBot) GetBuilderName

func (m *BuildInfoRequest_BuildBot) GetBuilderName() string

func (*BuildInfoRequest_BuildBot) GetMasterName

func (m *BuildInfoRequest_BuildBot) GetMasterName() string

func (*BuildInfoRequest_BuildBot) ProtoMessage

func (*BuildInfoRequest_BuildBot) ProtoMessage()

func (*BuildInfoRequest_BuildBot) Reset

func (m *BuildInfoRequest_BuildBot) Reset()

func (*BuildInfoRequest_BuildBot) String

func (m *BuildInfoRequest_BuildBot) String() string

type BuildInfoRequest_Buildbot

type BuildInfoRequest_Buildbot struct {
	Buildbot *BuildInfoRequest_BuildBot `protobuf:"bytes,1,opt,name=buildbot,oneof"`
}

type BuildInfoRequest_Swarming

type BuildInfoRequest_Swarming struct {
	// Host is the hostname of the Swarming server to connect to
	// (e.g., "swarming.example.com").
	//
	// This is optional. If omitted or empty, Milo's default Swarming server
	// will be used.
	Host string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"`
	// The Swarming task name.
	Task string `protobuf:"bytes,2,opt,name=task" json:"task,omitempty"`
}

The request containing a Swarming task.

func (*BuildInfoRequest_Swarming) Descriptor

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

func (*BuildInfoRequest_Swarming) GetHost

func (m *BuildInfoRequest_Swarming) GetHost() string

func (*BuildInfoRequest_Swarming) GetTask

func (m *BuildInfoRequest_Swarming) GetTask() string

func (*BuildInfoRequest_Swarming) ProtoMessage

func (*BuildInfoRequest_Swarming) ProtoMessage()

func (*BuildInfoRequest_Swarming) Reset

func (m *BuildInfoRequest_Swarming) Reset()

func (*BuildInfoRequest_Swarming) String

func (m *BuildInfoRequest_Swarming) String() string

type BuildInfoRequest_Swarming_

type BuildInfoRequest_Swarming_ struct {
	Swarming *BuildInfoRequest_Swarming `protobuf:"bytes,2,opt,name=swarming,oneof"`
}

type BuildInfoResponse

type BuildInfoResponse struct {
	// The LUCI project that this build belongs to.
	Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
	// The main build step.
	Step *milo1.Step `protobuf:"bytes,2,opt,name=step" json:"step,omitempty"`
	// The LogDog annotation stream for this build. The Prefix will be populated
	// and can be used as the prefix for any un-prefixed LogdogStream in "step".
	AnnotationStream *milo1.LogdogStream `protobuf:"bytes,3,opt,name=annotation_stream,json=annotationStream" json:"annotation_stream,omitempty"`
}

The request containing the name of the master.

func (*BuildInfoResponse) Descriptor

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

func (*BuildInfoResponse) GetAnnotationStream

func (m *BuildInfoResponse) GetAnnotationStream() *milo1.LogdogStream

func (*BuildInfoResponse) GetProject

func (m *BuildInfoResponse) GetProject() string

func (*BuildInfoResponse) GetStep

func (m *BuildInfoResponse) GetStep() *milo1.Step

func (*BuildInfoResponse) ProtoMessage

func (*BuildInfoResponse) ProtoMessage()

func (*BuildInfoResponse) Reset

func (m *BuildInfoResponse) Reset()

func (*BuildInfoResponse) String

func (m *BuildInfoResponse) String() string

type BuildInfoServer

type BuildInfoServer interface {
	Get(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error)
}

type BuildbotBuildJSON

type BuildbotBuildJSON struct {
	// Json data of the build.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

The response message for a specific build.

func (*BuildbotBuildJSON) Descriptor

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

func (*BuildbotBuildJSON) GetData

func (m *BuildbotBuildJSON) GetData() []byte

func (*BuildbotBuildJSON) ProtoMessage

func (*BuildbotBuildJSON) ProtoMessage()

func (*BuildbotBuildJSON) Reset

func (m *BuildbotBuildJSON) Reset()

func (*BuildbotBuildJSON) String

func (m *BuildbotBuildJSON) String() string

type BuildbotBuildRequest

type BuildbotBuildRequest struct {
	Master   string `protobuf:"bytes,1,opt,name=master" json:"master,omitempty"`
	Builder  string `protobuf:"bytes,2,opt,name=builder" json:"builder,omitempty"`
	BuildNum int64  `protobuf:"varint,3,opt,name=build_num,json=buildNum" json:"build_num,omitempty"`
}

The request for a specific build.

func (*BuildbotBuildRequest) Descriptor

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

func (*BuildbotBuildRequest) GetBuildNum

func (m *BuildbotBuildRequest) GetBuildNum() int64

func (*BuildbotBuildRequest) GetBuilder

func (m *BuildbotBuildRequest) GetBuilder() string

func (*BuildbotBuildRequest) GetMaster

func (m *BuildbotBuildRequest) GetMaster() string

func (*BuildbotBuildRequest) ProtoMessage

func (*BuildbotBuildRequest) ProtoMessage()

func (*BuildbotBuildRequest) Reset

func (m *BuildbotBuildRequest) Reset()

func (*BuildbotBuildRequest) String

func (m *BuildbotBuildRequest) String() string

type BuildbotBuildsJSON

type BuildbotBuildsJSON struct {
	// builds is the list of builds resulting from the builds request.
	Builds []*BuildbotBuildJSON `protobuf:"bytes,1,rep,name=builds" json:"builds,omitempty"`
	// The cursor to the next request from, if the exact same query was given.
	Cursor string `protobuf:"bytes,2,opt,name=cursor" json:"cursor,omitempty"`
}

The response message for multiple builds in a builder.

func (*BuildbotBuildsJSON) Descriptor

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

func (*BuildbotBuildsJSON) GetBuilds

func (m *BuildbotBuildsJSON) GetBuilds() []*BuildbotBuildJSON

func (*BuildbotBuildsJSON) GetCursor

func (m *BuildbotBuildsJSON) GetCursor() string

func (*BuildbotBuildsJSON) ProtoMessage

func (*BuildbotBuildsJSON) ProtoMessage()

func (*BuildbotBuildsJSON) Reset

func (m *BuildbotBuildsJSON) Reset()

func (*BuildbotBuildsJSON) String

func (m *BuildbotBuildsJSON) String() string

type BuildbotBuildsRequest

type BuildbotBuildsRequest struct {
	Master  string `protobuf:"bytes,1,opt,name=master" json:"master,omitempty"`
	Builder string `protobuf:"bytes,2,opt,name=builder" json:"builder,omitempty"`
	// Limit to the number of builds to return (default: 20).
	Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
	// Include ongoing builds (default: false).
	IncludeCurrent bool `protobuf:"varint,4,opt,name=include_current,json=includeCurrent" json:"include_current,omitempty"`
	// Return builds starting from this cursor.
	Cursor string `protobuf:"bytes,5,opt,name=cursor" json:"cursor,omitempty"`
}

The request for multiple build on a builder.

func (*BuildbotBuildsRequest) Descriptor

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

func (*BuildbotBuildsRequest) GetBuilder

func (m *BuildbotBuildsRequest) GetBuilder() string

func (*BuildbotBuildsRequest) GetCursor

func (m *BuildbotBuildsRequest) GetCursor() string

func (*BuildbotBuildsRequest) GetIncludeCurrent

func (m *BuildbotBuildsRequest) GetIncludeCurrent() bool

func (*BuildbotBuildsRequest) GetLimit

func (m *BuildbotBuildsRequest) GetLimit() int32

func (*BuildbotBuildsRequest) GetMaster

func (m *BuildbotBuildsRequest) GetMaster() string

func (*BuildbotBuildsRequest) ProtoMessage

func (*BuildbotBuildsRequest) ProtoMessage()

func (*BuildbotBuildsRequest) Reset

func (m *BuildbotBuildsRequest) Reset()

func (*BuildbotBuildsRequest) String

func (m *BuildbotBuildsRequest) String() string

type BuildbotClient

type BuildbotClient interface {
	GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error)
	GetBuildbotBuildJSON(ctx context.Context, in *BuildbotBuildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error)
	GetBuildbotBuildsJSON(ctx context.Context, in *BuildbotBuildsRequest, opts ...grpc.CallOption) (*BuildbotBuildsJSON, error)
}

func NewBuildbotClient

func NewBuildbotClient(cc *grpc.ClientConn) BuildbotClient

func NewBuildbotPRPCClient

func NewBuildbotPRPCClient(client *prpc.Client) BuildbotClient

type BuildbotServer

type BuildbotServer interface {
	GetCompressedMasterJSON(context.Context, *MasterRequest) (*CompressedMasterJSON, error)
	GetBuildbotBuildJSON(context.Context, *BuildbotBuildRequest) (*BuildbotBuildJSON, error)
	GetBuildbotBuildsJSON(context.Context, *BuildbotBuildsRequest) (*BuildbotBuildsJSON, error)
}

type CompressedMasterJSON

type CompressedMasterJSON struct {
	// Whether the master is internal or not.
	Internal bool `protobuf:"varint,1,opt,name=internal" json:"internal,omitempty"`
	// Timestamp of the freshness of the master data.
	Modified *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=modified" json:"modified,omitempty"`
	// Gzipped json data of the master.
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

The response message containing master information.

func (*CompressedMasterJSON) Descriptor

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

func (*CompressedMasterJSON) GetData

func (m *CompressedMasterJSON) GetData() []byte

func (*CompressedMasterJSON) GetInternal

func (m *CompressedMasterJSON) GetInternal() bool

func (*CompressedMasterJSON) GetModified

func (*CompressedMasterJSON) ProtoMessage

func (*CompressedMasterJSON) ProtoMessage()

func (*CompressedMasterJSON) Reset

func (m *CompressedMasterJSON) Reset()

func (*CompressedMasterJSON) String

func (m *CompressedMasterJSON) String() string

type ConsoleGitInfo

type ConsoleGitInfo struct {
	Commits []*ConsoleGitInfo_Commit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"`
}

ConsoleGitInfo stores memcache-able data that the console view will use when displaying git commits. A compressed ConsoleGitInfo should always be < 1MB, so don't put anything too big in here.

func (*ConsoleGitInfo) Descriptor

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

func (*ConsoleGitInfo) GetCommits

func (m *ConsoleGitInfo) GetCommits() []*ConsoleGitInfo_Commit

func (*ConsoleGitInfo) ProtoMessage

func (*ConsoleGitInfo) ProtoMessage()

func (*ConsoleGitInfo) Reset

func (m *ConsoleGitInfo) Reset()

func (*ConsoleGitInfo) String

func (m *ConsoleGitInfo) String() string

type ConsoleGitInfo_Commit

type ConsoleGitInfo_Commit struct {
	// The raw commit hash.
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// The author name (e.g. "Rey Cool")
	AuthorName string `protobuf:"bytes,2,opt,name=author_name,json=authorName" json:"author_name,omitempty"`
	// The author email (e.g. "rey_cool@example.com")
	AuthorEmail string `protobuf:"bytes,3,opt,name=author_email,json=authorEmail" json:"author_email,omitempty"`
	// The commit timestamp (~= when the commit landed... not always true!).
	CommitTime *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=commit_time,json=commitTime" json:"commit_time,omitempty"`
	// The raw commit message as text.
	Msg string `protobuf:"bytes,5,opt,name=msg" json:"msg,omitempty"`
}

func (*ConsoleGitInfo_Commit) Descriptor

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

func (*ConsoleGitInfo_Commit) GetAuthorEmail

func (m *ConsoleGitInfo_Commit) GetAuthorEmail() string

func (*ConsoleGitInfo_Commit) GetAuthorName

func (m *ConsoleGitInfo_Commit) GetAuthorName() string

func (*ConsoleGitInfo_Commit) GetCommitTime

func (m *ConsoleGitInfo_Commit) GetCommitTime() *google_protobuf.Timestamp

func (*ConsoleGitInfo_Commit) GetHash

func (m *ConsoleGitInfo_Commit) GetHash() []byte

func (*ConsoleGitInfo_Commit) GetMsg

func (m *ConsoleGitInfo_Commit) GetMsg() string

func (*ConsoleGitInfo_Commit) ProtoMessage

func (*ConsoleGitInfo_Commit) ProtoMessage()

func (*ConsoleGitInfo_Commit) Reset

func (m *ConsoleGitInfo_Commit) Reset()

func (*ConsoleGitInfo_Commit) String

func (m *ConsoleGitInfo_Commit) String() string

type DecoratedBuildInfo

type DecoratedBuildInfo struct {
	// Service is the service to decorate.
	Service BuildInfoServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(c context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(c context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedBuildInfo) Get

type DecoratedBuildbot

type DecoratedBuildbot struct {
	// Service is the service to decorate.
	Service BuildbotServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, it the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(c context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(c context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedBuildbot) GetBuildbotBuildJSON

func (s *DecoratedBuildbot) GetBuildbotBuildJSON(c context.Context, req *BuildbotBuildRequest) (rsp *BuildbotBuildJSON, err error)

func (*DecoratedBuildbot) GetBuildbotBuildsJSON

func (s *DecoratedBuildbot) GetBuildbotBuildsJSON(c context.Context, req *BuildbotBuildsRequest) (rsp *BuildbotBuildsJSON, err error)

func (*DecoratedBuildbot) GetCompressedMasterJSON

func (s *DecoratedBuildbot) GetCompressedMasterJSON(c context.Context, req *MasterRequest) (rsp *CompressedMasterJSON, err error)

type MasterRequest

type MasterRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

The request containing the name of the master.

func (*MasterRequest) Descriptor

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

func (*MasterRequest) GetName

func (m *MasterRequest) GetName() string

func (*MasterRequest) ProtoMessage

func (*MasterRequest) ProtoMessage()

func (*MasterRequest) Reset

func (m *MasterRequest) Reset()

func (*MasterRequest) String

func (m *MasterRequest) String() string

Jump to

Keyboard shortcuts

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