cd

package
v0.0.0-...-d850389 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

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.

Jump to

Keyboard shortcuts

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