common

package
v0.0.0-...-963fb65 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChromiumSrcGit = "https://chromium.googlesource.com/chromium/src.git"
)

Variables

This section is empty.

Functions

func NewChromiumCommit

func NewChromiumCommit(gitHash string) *pinpoint_proto.Commit

func NewCommit

func NewCommit(repository, gitHash string) *pinpoint_proto.Commit

Types

type CombinedCommit

type CombinedCommit pinpoint_proto.CombinedCommit

A CombinedCommit represents one main base commit with any dependencies that require overrides as part of the build request. For example, if Commit is chromium/src@1, Dependency may be V8@2 which is passed along to Buildbucket as a deps_revision_overrides.

func NewCombinedCommit

func NewCombinedCommit(main *pinpoint_proto.Commit, deps ...*pinpoint_proto.Commit) *CombinedCommit

NewCombinedCommit returns a new CombinedCommit object.

func (*CombinedCommit) Clone

func (cc *CombinedCommit) Clone() *CombinedCommit

Clone returns a copy of this combined commit.

func (*CombinedCommit) DepsToMap

func (cc *CombinedCommit) DepsToMap() map[string]string

DepsToMap translates all deps into a map.

func (*CombinedCommit) GetLatestModifiedDep

func (cc *CombinedCommit) GetLatestModifiedDep() *pinpoint_proto.Commit

GetLatestModifiedDep returns the most recently added commit.

func (*CombinedCommit) GetMainGitHash

func (cc *CombinedCommit) GetMainGitHash() string

GetMainGitHash returns the git hash of main.

func (*CombinedCommit) Key

func (cc *CombinedCommit) Key() uint32

Key returns all git hashes combined to use for map indexing

func (*CombinedCommit) UpsertModifiedDep

func (cc *CombinedCommit) UpsertModifiedDep(commit *pinpoint_proto.Commit)

UpsertModifiedDep inserts or updates a commit to ModifiedDeps

Jump to

Keyboard shortcuts

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