go: firebase.google.com/go/storage Index | Files

package storage

import "firebase.google.com/go/storage"

Package storage provides functions for accessing Google Cloud Storge buckets.

Index

Package Files

storage.go

type Client Uses

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

Client is the interface for the Firebase Storage service.

func NewClient Uses

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 Uses

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

Bucket returns a handle to the specified Cloud Storage bucket.

func (*Client) DefaultBucket Uses

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.

Package storage imports 4 packages (graph) and is imported by 1 packages. Updated 2018-12-05. Refresh now. Tools for package owners.