storage

package
v0.0.0-...-8c1580d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

type FileStorage interface {
	CreateSignedURL(ctx context.Context, fileID string) (string, error)
}

type Storage

type Storage struct {
	ProjectID string
	StorageID string

	BucketHandle *storage.BucketHandle
	// contains filtered or unexported fields
}

func MustNewStorage

func MustNewStorage(ctx context.Context, projectID, storageID string, expirationTime int, allowedType string) Storage

func NewStorage

func NewStorage(ctx context.Context, projectID, storageID string, expirationTime int, allowedType string) (Storage, error)

func (Storage) CreateSignedURL

func (s Storage) CreateSignedURL(ctx context.Context, fileID string) (string, error)

Jump to

Keyboard shortcuts

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