Documentation ¶
Index ¶
Constants ¶
View Source
const PathLengthLimit = 1024
PathLengthLimit is the maximum path length that GCS supports (in bytes when UTF-8-formatted).
Variables ¶
View Source
var ( // Error is the error class for this package. Error = errs.Class("gcstest") // ErrCredentialsNotFound is returned when the JSON key/bucket name hasn't // been found by FindCredentials. ErrCredentialsNotFound = Error.New("credentials not found") )
Functions ¶
func FindCredentials ¶
FindCredentials tries to find the JSON key and bucket name for GCS-related tests and returns ErrCredentialsNotFound otherwise.
func RandPathUTF8 ¶
RandPathUTF8 returns a random path that does not exceed maxLen bytes and is a valid UTF-8 string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.