Documentation ¶
Overview ¶
Package luciexe implements LUCI Executable protocol, documented in message Executable in https://chromium.googlesource.com/infra/luci/luci-go/+/master/buildbucket/proto/common.proto
Index ¶
Constants ¶
View Source
const BuildStreamName = "build.proto"
BuildStreamName is the name of the build stream, relative to $LOGDOG_STREAM_PREFIX. For more details, see Executable message in https://chromium.googlesource.com/infra/luci/luci-go/+/master/buildbucket/proto/common.proto
Variables ¶
This section is empty.
Functions ¶
func RunnerMain ¶
RunnerMain runs LUCI runner, a program that runs a LUCI executable.
Types ¶
type Client ¶
type Client struct { // Timestamp for the build message stream. // If zero, time.Now is used. BuildTimestamp time.Time // InitBuild is the initial state of the build read from stdin. InitBuild *pb.Build // Logdog environment. // Logdog.Client can be used to create new LogDog streams. Logdog *bootstrap.Bootstrap // contains filtered or unexported fields }
Client can be used by Go programs to implement LUCI Executable protocol.
Example program that does not check errors:
package main import "go.chromium.org/luci/buildbucket/luciexe" "go.chromium.org/luci/buildbucket/proto" ) func main() int { var client luciexe.Client client.Init() client.WriteBuild(&buildbucketpb.Build{ Steps: []*buildbucketpb.Step{ { Name: "checkout", Status: buildbucketpb.SUCCESS, // start time, end time }, }, }) }
TODO(nodir): add support for sub-builds.
Click to show internal directories.
Click to hide internal directories.