Documentation ¶
Index ¶
- func Authenticate(ctx context.Context, serviceAccount string) error
- func BuildLogPath(gcsURL string) (string, error)
- func Copy(ctx context.Context, srcBucketName, srcPath, dstBucketName, dstPath string) error
- func Download(ctx context.Context, bucketName, srcPath, dstPath string) error
- func Exists(ctx context.Context, bucketName, storagePath string) bool
- func GetConsoleURL(gcsURL string) (string, error)
- func ListChildrenFiles(ctx context.Context, bucketName, storagePath string) []string
- func ListDirectChildren(ctx context.Context, bucketName, storagePath string) []string
- func NewReader(ctx context.Context, bucketName, filePath string) (*storage.Reader, error)
- func Read(ctx context.Context, bucketName, filePath string) ([]byte, error)
- func ReadURL(ctx context.Context, gcsURL string) ([]byte, error)
- func Upload(ctx context.Context, bucketName, dstPath, srcPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate explicitly sets up authentication for the rest of run
func BuildLogPath ¶
BuildLogPath returns the build log path from the test result gcsURL
func Exists ¶
Exists checks if path exist under gcs bucket, this path can either be a directory or a file.
func GetConsoleURL ¶
GetConsoleURL returns the gcs link renderable directly from a browser
func ListChildrenFiles ¶
ListChildrenFiles recursively lists all children files.
func ListDirectChildren ¶
ListDirectChildren lists direct children paths (including files and directories).
func NewReader ¶
NewReader creates a new Reader of a gcs file. Important: caller must call Close on the returned Reader when done reading
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.