storage

package
v3.12.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package storage provides functions for accessing Google Cloud Storge buckets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the interface for the Firebase Storage service.

func NewClient

func NewClient(ctx context.Context, c *internal.StorageConfig) (*Client, error)

NewClient creates a new instance of the Firebase Storage Client.

This function can only be invoked from within the SDK. Client applications should access the the Storage service through firebase.App.

func (*Client) Bucket

func (c *Client) Bucket(name string) (*storage.BucketHandle, error)

Bucket returns a handle to the specified Cloud Storage bucket.

func (*Client) DefaultBucket

func (c *Client) DefaultBucket() (*storage.BucketHandle, error)

DefaultBucket returns a handle to the default Cloud Storage bucket.

To use this method, the default bucket name must be specified via firebase.Config when initializing the App.

Jump to

Keyboard shortcuts

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