Documentation ¶
Overview ¶
Package deprecated is deprecated part of the buildbucket library. TODO(nodir): delete it when Buildbot is dead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BucketNameToV2 ¶
BucketNameToV2 converts a v1 Bucket name to the v2 constituent parts. An error is returned if the bucketname does not match the expected format. The difference between the bucket name is that v2 uses short names, for example: v1: luci.chromium.try v2: try "luci" is dropped, "chromium" is recorded as the project, "try" is the name. If the bucket does not conform to this convention, or if it is not a luci bucket, then this return and empty string for both project and bucket.
func BuildToV2 ¶
func BuildToV2(msg *v1.LegacyApiCommonBuildMessage) (b *pb.Build, err error)
BuildToV2 converts a v1 build message to v2.
The returned build may be incomplete if msg is incomplete. For example, if msg is a partial response and does not have builder name, the returned build won't have it either.
The returned build does not include steps. Returns an error if msg is malformed.
Types ¶
This section is empty.