findbuild

package
v0.0.0-...-b71eeb1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRequest

type BuildRequest struct {
	// HttpClient is a authorized http.Client object with Gerrit scope.
	HTTPClient *http.Client
	// GerritHost is the Gerrit instance to query from.
	// ex. "https://cos-review.googlesource.com"
	GerritHost string
	// GitilesHost is the GoB instance to query from.
	// It should contain the manifest repository
	// ex. "cos.googlesource.com"  (note the lack of https://)
	GitilesHost string
	// ManifestRepo is the repository the manifest.xml files are located in.
	// ex. "cos/manifest-snapshots"
	ManifestRepo string
	// CL can be either the CL number or commit SHA of your target CL
	// ex. 3741 or If9f774179322c413fa0fd5ebb3dd615c5b22cd6c
	CL string
}

BuildRequest is the input struct for the FindBuild function

type BuildResponse

type BuildResponse struct {
	BuildNum string
	CLNum    string
}

BuildResponse is the output struct for the FindBuild function

func FindBuild

func FindBuild(request *BuildRequest) (*BuildResponse, utils.ChangelogError)

FindBuild locates the first build that a CL was introduced to.

func FindReleasedBuild

func FindReleasedBuild(request *BuildRequest) (*BuildResponse, utils.ChangelogError)

findReleasedBuild locates the first build that a CL was introduced in using the builds-info database

Jump to

Keyboard shortcuts

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