bes

package
v0.0.0-...-5f133c6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: BSD-3-Clause, BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildBuddyClient

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

func NewBuildBuddyClient

func NewBuildBuddyClient(u *url.URL, bf *client.BaseFlags, apiKey string) (*BuildBuddyClient, error)

NewBuildBuddyClient creates a client for the BuildBuddy instance at the specified URL. If not nil, auth cookies are discovered via BaseFlags and added to every request. apiKey must be a valid BuildBuddy API key (other forms of auth are not currently supported).

func NewTestClient

func NewTestClient(doer httpDoer) *BuildBuddyClient

NewTestClient makes a client specifically for testing. Not meant to be used in hot code.

func (*BuildBuddyClient) GetBuildEvents

func (c *BuildBuddyClient) GetBuildEvents(ctx context.Context, invocationId string) ([]*bespb.BuildEvent, error)

GetBuildEvents fetches all BES events from the specified invocation by ID. It returns an error if the call fails or exactly one invocation is not returned for the specified ID.

Jump to

Keyboard shortcuts

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