storage

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package storage contains helpers for Google Cloud Storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucket

func CreateBucket(storageCli *storage.Client, project string, f *framework.Framework) string

CreateBucket creates a bucket named after the given framework.Framework.

func CreateObject

func CreateObject(storageCli *storage.Client, bucket string, f *framework.Framework) string

CreateObject creates an object in the given bucket.

func DeleteBucket

func DeleteBucket(storageCli *storage.Client, bucketID string)

DeleteBucket deletes a bucket by ID. Buckets need to be emptied before they can be deleted.

func DeleteObject

func DeleteObject(storageCli *storage.Client, bucketID, objectName string)

DeleteObject deletes an object by name from the given bucket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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