Documentation ¶
Overview ¶
Package common shares methods for local builder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Backoff ¶
Backoff returns a value in [0, maxDelay] that increases exponentially with retries, starting from baseDelay.
func Clean ¶ added in v0.1.1
Clean removes left over containers, networks, volumes from a previous run of the local builder. This happens when ctrl+c is used during a local build. Each cleaning is defined by a get command, a warning to print if the get command returns something, and a delete command to apply in that case.
func ParseSubstitutionsFlag ¶
ParseSubstitutionsFlag parses a substitutions string into a map.
Types ¶
type LogEntry ¶
type LogEntry struct { // Line number for this line of output. Line int // Label describes the writer generating the log entry. eg, "MAIN" or "3:gcr.io/cloud-builders/some-builder:STDOUT" Label string // Text is one line of output. Text string // Time is the time the log line was written. Time time.Time }
LogEntry is a single log entry containing 1 line of text.
Click to show internal directories.
Click to hide internal directories.