gcp

package
v3.43.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorageClient

func NewStorageClient(ctx context.Context) (*storage.Client, error)

NewStorageClient creates a storage.Client instance and, if the `GCP_CLOUD_STORAGE_EMULATOR_URL` env var is set, then a custom HTTPClient is used, which forwards all requests to the provided URL. Note: [this bug](https://github.com/googleapis/google-cloud-go/issues/2476) prevents the `STORAGE_EMULATOR_HOST` environment variable from working correctly, so this alternative approach is needed when using a Google Cloud Storage emulator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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