Back to godoc.org

Package deprecated

v0.0.0-...-99e7f18
Latest Go to latest

The highest tagged major version is .

Published: 3 days ago | License: Apache-2.0 | Module: go.chromium.org/luci

Overview

Package deprecated is deprecated part of the buildbucket library. TODO(nodir): delete it when Buildbot is dead.

Index

func BucketNameToV2

func BucketNameToV2(v1Bucket string) (project string, bucket string)

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier