Documentation
¶
Index ¶
- func NewExtendedGSClient(client *storage.Client) (*extendedGSClient, error)
- func NewRegexDownloader(bucket string, query *storage.Query, inputPatterns patternMap) (*regexDownloader, error)
- func NewSingleTaskDownloader(bucket string, prefix string) (*singleTaskDownloader, error)
- type Entry
- type IteratorStatus
- type LsResult
- type LsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExtendedGSClient ¶
NewExtendedGSClient takes a Google Storage client and returns a wrapped version.
A wrapped Google Storage client, much like the raw client it wraps, is intended to be a long-lived object. For that reason, we return an error value as well to make error handling more obvious at the call site.
func NewRegexDownloader ¶
func NewRegexDownloader(bucket string, query *storage.Query, inputPatterns patternMap) (*regexDownloader, error)
NewRegexDownloader creates an object that manages the common pattern of downloading files matching certain regexes and a query. For example, grabbing both `dmesg.gz` and `status.log` out.
func NewSingleTaskDownloader ¶
NewSingleTaskDownloader creates an object that manages downloads corresponding to a single swarming task.
Types ¶
type Entry ¶
type Entry struct { // Name is a human-readable short name for the type of entity, like "results". Name string // GSURL is the google storage location of the item. GSURL string // Content is the actual data. It is not the *raw* content. We will, for example, // decompress the data if it is compressed. Content string }
Entry is a pair consisting of a GSURL and the contents of the file in Google Storage.
type IteratorStatus ¶
type IteratorStatus int32
IteratorStatus is an enum that makes it easy to distinguish between iterators that hit the end of their iteration successfully and genuine errors.