buildapi

package
v0.0.0-...-65468f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 7 Imported by: 2

Documentation

Overview

buildapi allows querying the Android Build API to find buildid's.

Index

Constants

View Source
const (
	// PAGE_SIZE is the number of builds to request per call.
	PAGE_SIZE = 100

	// RETRIES this many times before giving up on a call.
	RETRIES = 5

	// SLEEP_DURATION is the time to sleep between failed calls.
	SLEEP_DURATION = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API allows finding all the Build's.

func NewAPI

func NewAPI(client *http.Client) (*API, error)

NewAPI returns a new *API.

The 'client' must be authenticated to use the androidbuildinternal api.

func (*API) GetBranchFromBuildID

func (a *API) GetBranchFromBuildID(buildID int64) (string, error)

GetBranchFromBuildID returns the branch name for the given build id.

func (*API) GetMostRecentBuildID

func (a *API) GetMostRecentBuildID() (int64, int64, error)

GetMostRecentBuildID returns the most recent build id and its timestamp.

type Build

type Build struct {
	BuildId int64
	TS      int64
}

Build represents a single build and its creation timestamp.

Jump to

Keyboard shortcuts

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