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.

            Source Files