Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 194146229

Project import generated by Copybara.

PiperOrigin-RevId: 194146229

remove old vendor dependencies

re-vendor dependencies
  • Loading branch information
codrienne committed Apr 24, 2018
1 parent e5308fe commit 51e16d0
Show file tree
Hide file tree
Showing 414 changed files with 74,230 additions and 19,756 deletions.
770 changes: 563 additions & 207 deletions build/build.go

Large diffs are not rendered by default.

25 changes: 24 additions & 1 deletion build/build_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@

package build

import pb "google.golang.org/genproto/googleapis/devtools/cloudbuild/v1"

// StartStep is a build step WaitFor dependency that is always satisfied.
const StartStep = "-"

// BuildStatus is a pseudo-enum of valid build states.
type BuildStatus string

const (
// StatusNotStarted - Default status for newly-created builds until they begin.
StatusNotStarted = ""
// StatusFetchSource - Fetching source.
StatusFetchSource BuildStatus = "FETCHSOURCE"
// StatusBuild - Executing the build step images on the source.
Expand All @@ -29,10 +33,27 @@ const (
StatusPush BuildStatus = "PUSH"
// StatusDone - Build completed successfully.
StatusDone BuildStatus = "DONE"
// StatusStepTimeout - A build step has timed out.
StatusStepTimeout BuildStatus = "STEP_TIMEOUT"
// StatusError - Build failed.
StatusError BuildStatus = "ERROR"
// StatusTimeout - Build timed out.
StatusTimeout BuildStatus = "TIMEOUT"
// StatusCancelled - Build was cancelled.
StatusCancelled BuildStatus = "CANCELLED"
)

// FullStatus contains detailed status of the build, including status of each
// build step.
type FullStatus struct {
// BuildStatus is the overall build status.
BuildStatus BuildStatus

// StepStatus is the status of each individual build step; StepStatus is
// listed in the same order as the build steps in the build request.
StepStatus []pb.Build_Status
}

// HashType is a pseudo-enum of valid SourceHashes.
type HashType string

Expand All @@ -56,11 +77,13 @@ type Hash struct {

// BuildSummary is the data returned by the blocking /build/summary endpoint.
type BuildSummary struct {
Status BuildStatus
Status BuildStatus
StepStatus []pb.Build_Status
BuiltImages []BuiltImage
BuildStepImages []string // index of build step -> digest, else empty string
FileHashes map[string][]Hash
Timing TimingInfo
Artifacts ArtifactsInfo
}

// BuiltImage is information about an image that resulted from this build and
Expand Down
Loading

0 comments on commit 51e16d0

Please sign in to comment.