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.
Click to show internal directories.
Click to hide internal directories.