import "go.chromium.org/luci/scheduler/appengine/task/utils"
Package utils contains a bunch of small functions used by task/ subpackages.
IsTransientAPIError returns true if error from Google API client indicates an error that can go away on its own in the future.
ValidateKVList makes sure each string in the list is valid key-value pair.
WrapAPIError wraps error from Google API client in transient wrapper if necessary.
KV is key and value strings.
KVList if list of KV pairs.
KVListFromMap converts a map to KVList.
UnpackKVList takes validated list of k-v pair strings and returns list of structs.
Silently skips malformed strings. Use ValidateKVList to detect them before calling this function.
Pack converts KV list to a list of strings.
Path | Synopsis |
---|---|
tasktest |
Package utils imports 5 packages (graph) and is imported by 4 packages. Updated 2021-01-24. Refresh now. Tools for package owners.