Documentation
¶
Overview ¶
Package builds fetches and handles the build image information from the release team.
Index ¶
- func ExtractBoardAndVariant(buildTarget string) (string, string, error)
- func FetchBuildsFromPSQL(ctx context.Context, requiredBuilds []*RequiredBuild, isProd bool) ([]*kronpb.Build, error)
- func TransformReportToKronBuild(report *buildpb.BuildReport) (*kronpb.Build, error)
- type BuildReportPackage
- type RequiredBuild
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractBoardAndVariant ¶
ExtractBoardAndVariant will extract the board and potential variant from the build target.
func FetchBuildsFromPSQL ¶
func FetchBuildsFromPSQL(ctx context.Context, requiredBuilds []*RequiredBuild, isProd bool) ([]*kronpb.Build, error)
FetchBuildsFromPSQL retrieves the requested builds from long term PSQL storage.
func TransformReportToKronBuild ¶
func TransformReportToKronBuild(report *buildpb.BuildReport) (*kronpb.Build, error)
TransformReportToKronBuild takes a build report and returns all relevant builds in a Kron parsable form.
Types ¶
type BuildReportPackage ¶
type BuildReportPackage struct { Report *buildpb.BuildReport Message *cloudPubsub.Message }
BuildReportPackage contains the unmarshalled report and the Pub/Sub message in which it came from.
func IngestBuildsFromPubSub ¶
func IngestBuildsFromPubSub(projectID, subscriptionName string, isProd bool, finalize func(*[]*BuildReportPackage) error) ([]*BuildReportPackage, error)
IngestBuildsFromPubSub connects to pubsub ingests all new build information from the releases Pub/Sub stream. Once read, all builds will be written into long term storage.
type RequiredBuild ¶
RequiredBuild encapsulates the information needed to request a build from PSQL for TimedEvents configs.