Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeUploadCL ¶
func MaybeUploadCL(ctx context.Context, checkoutDir, commitSubject, srcRepo, srcCommit, louhiPubsubProject, louhiExecutionID string) error
MaybeUploadCL uploads a CL if there are any diffs in checkoutDir. It builds the commit message starting with the given commitSubject. If srcRepo and srcCommit are provided, a link back to the source commit is added to the commit message. If louhiPubsubProject and louhiExecutionID are provided, a pub/sub message is sent after the CL is uploaded.
Types ¶
type DockerImageWithGitCommit ¶
type DockerImageWithGitCommit struct { Digest string Commit *vcsinfo.LongCommit Tags []string }
DockerImageWithGitCommit pairs a Docker image instance with the Git commit at which the image was built.
func MatchDockerImagesToGitCommits ¶
func MatchDockerImagesToGitCommits(ctx context.Context, dockerClient docker.Client, repo gitiles.GitilesRepo, image string, limit int) ([]*DockerImageWithGitCommit, error)
MatchDockerImagesToGitCommits retrieves all versions of a given Docker image and maps them to the Git commits at which they were built.
Click to show internal directories.
Click to hide internal directories.