buildbucket

package
v0.0.0-...-72e4f35 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHost = "cr-buildbucket.appspot.com"

DefaultHost is the default Buildbucket server.

Variables

This section is empty.

Functions

func BuilderID

func BuilderID() flag.Getter

BuilderID returns a flag.Value for reading a builder ID from a string. The format of the input is project/bucket/build.

func NewBuildsClient

func NewBuildsClient(ctx context.Context, host string, opts auth.Options) (buildbucketpb.BuildsClient, error)

NewBuildsClient returns a new BuildsClient.

Types

type BuilderIDFlag

type BuilderIDFlag struct {
	// contains filtered or unexported fields
}

BuilderIDFlag identifies a Builder. This is a convenience type for reading a builder id from command line flags.

func (BuilderIDFlag) Get

func (b BuilderIDFlag) Get() any

Get returns the parsed flag value. The output can be cast as a buildbucketpb.BuilderID.

func (*BuilderIDFlag) Set

func (b *BuilderIDFlag) Set(input string) error

Set implements flag.Value

func (*BuilderIDFlag) String

func (b *BuilderIDFlag) String() string

Jump to

Keyboard shortcuts

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