Documentation ¶
Index ¶
- Constants
- func NewChromiumCommit(gitHash string) *pinpoint_proto.Commit
- func NewCommit(repository, gitHash string) *pinpoint_proto.Commit
- type CombinedCommit
- func (cc *CombinedCommit) Clone() *CombinedCommit
- func (cc *CombinedCommit) DepsToMap() map[string]string
- func (cc *CombinedCommit) GetLatestModifiedDep() *pinpoint_proto.Commit
- func (cc *CombinedCommit) GetMainGitHash() string
- func (cc *CombinedCommit) Key() uint32
- func (cc *CombinedCommit) UpsertModifiedDep(commit *pinpoint_proto.Commit)
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
Click to show internal directories.
Click to hide internal directories.