Documentation ¶
Index ¶
Constants ¶
const ( // Default ACLs for this upload Default = false // PublicRead ACL for this upload. PublicRead = true )
Variables ¶
This section is empty.
Functions ¶
func ClientWithCreds ¶
ClientWithCreds returns a storage client, optionally authenticated with the specified .json creds
Types ¶
type Build ¶
type Build struct { Bucket *storage.BucketHandle Context context.Context Prefix string BucketPath string }
Build points to a build stored under a particular gcs prefix.
func (Build) Artifacts ¶
Artifacts writes the object name of all paths under the build's artifact dir to the output channel.
func (Build) Suites ¶
func (build Build) Suites(artifacts <-chan string, suites chan<- SuitesMeta) error
Suites takes a channel of artifact names, parses those representing junit suites, writing the result to the suites channel.
Note that junit suites are parsed in parallel, so there are no guarantees about suites ordering.
type Builds ¶
type Builds []Build
Builds is a slice of builds.
func ListBuilds ¶
ListBuilds returns the array of builds under path, sorted in monotonically decreasing order.
type Finished ¶
type Finished struct { metadata.Finished // Running when the job hasn't finished and finished.json doesn't exist Running bool }
Finished holds finished.json data.
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path parses gs://bucket/obj urls
func (Path) ResolveReference ¶
ResolveReference returns the path relative to the current path