gcstest

package
v1.73.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

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

func FindCredentials() (jsonKey []byte, bucket string, err error)

FindCredentials tries to find the JSON key and bucket name for GCS-related tests and returns ErrCredentialsNotFound otherwise.

func RandPathUTF8

func RandPathUTF8(maxLen int) string

RandPathUTF8 returns a random path that does not exceed maxLen bytes and is a valid UTF-8 string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL