Documentation
¶
Overview ¶
Package ctprequest will build and return a CTP request to be handled by the CTP BuildBucket builder.
Package ctprequest will build and return a CTP request to be handled by the CTP BuildBucket builder.
Index ¶
Constants ¶
View Source
const ( GSformat = "gs://%s/%s" ContainerMetadataLocation = "metadata/containers.jsonpb" DefaultImageBucket = "chromeos-image-archive" MaxRetry = 3 Fortnightly = int64(240) Weekly = int64(230) Daily = int64(200) PostBuild = int64(170) // CTP requests with a qs account will not require a priority so apply the // default swarming value. Default = int64(140) )
Variables ¶
This section is empty.
Functions ¶
func AddTagToRequest ¶
AddTagToRequest adds a new string tag in the form of <key>:<value> to the request's list of tags.
func BuildCTPRequest ¶
func BuildCTPRequest(config *suschpb.SchedulerConfig, board, model, buildTarget, buildMilestone, buildVersion, branchTrigger string) *requestpb.Request
BuildCTPRequest takes information from a SuSch config and builds the corresponding CTP request.
Types ¶
type CTPRequests ¶
func BuildAllCTPRequests ¶
func BuildAllCTPRequests(config *suschpb.SchedulerConfig, targets configparser.TargetOptions) CTPRequests
BuildAllCTPRequests Generates all potential CTP options for the given configuration. FIX(b/321095387): This needs to build all CTPRequests and not require that the targets are passed in. TODO: Needs the build milestone and version passed in for proper CTP Requests to work.
Click to show internal directories.
Click to hide internal directories.