bucket

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	sync.Mutex

	StorageBucket string
	// contains filtered or unexported fields
}

func FBInitBucket

func FBInitBucket(client *storage.Client, bucket string) *Bucket

func (*Bucket) DeleteFile

func (b *Bucket) DeleteFile(ctx context.Context, file string) error

func (*Bucket) Download

func (b *Bucket) Download(ctx context.Context, file string) ([]byte, error)

func (*Bucket) Upload

func (b *Bucket) Upload(ctx context.Context, file string) error

Jump to

Keyboard shortcuts

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