computemapping

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MappingInfo

type MappingInfo struct {
	Mapping       *dirmd.Mapping
	AffectedFiles []string
}

MappingInfo groups a computed Mapping and affected files for a set of ChangeRevs in a project.

func ProjectInfos

func ProjectInfos(
	ctx context.Context,
	changeRevs []*gerrit.ChangeRev,
	workdirFn WorkdirCreation,
) ([]*MappingInfo, error)

computeProjectMappingInfos calculates a projectMappingInfo for each project in changeRevs.

type WorkdirCreation

type WorkdirCreation func() (string, func() error, error)

WorkdirCreation is a function signature that returns a path to a workdir, a cleanup function, and an error if one occurred.

Jump to

Keyboard shortcuts

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