common

package
v0.0.0-...-110cdec Latest Latest
Warning

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

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

Documentation

Overview

Package common contains common code used throughout buildbucket appengine code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuild

func GetBuild(ctx context.Context, id int64) (*model.Build, error)

GetBuild returns the build with the given ID or NotFound appstatus if it is not found. A shortcut for GetBuildEntities with only Build.

func GetBuildEntities

func GetBuildEntities(ctx context.Context, id int64, kinds ...string) ([]any, error)

GetBuildEntities fetches entities associated with the given build.

At least one `kinds` must be given. Only kinds of entities associated with builds must be given (see model.XXXKind constants). Panics otherwise.

Returns NonFound appstatus if any of them are not found. Any other errors are tagged as transient.

Types

This section is empty.

Directories

Path Synopsis
Package buildcel provides go/cel support for Build proto.
Package buildcel provides go/cel support for Build proto.

Jump to

Keyboard shortcuts

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