storage

package
v0.0.0-...-01500c1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	THUMBNAILS_FOLDER_NAME   = "thumbnails"
	APPLICATIONS_FOLDER_NAME = "applications"
)

Variables

This section is empty.

Functions

func PathJoin

func PathJoin(segs ...string) string

Types

type StorageClient

type StorageClient struct {
	Client *storage.Client
	Ctx    context.Context
}

func GetNewStorageClient

func GetNewStorageClient() (*StorageClient, error)

func (*StorageClient) Close

func (this *StorageClient) Close()

func (*StorageClient) GetDefaultBucket

func (this *StorageClient) GetDefaultBucket() *storage.BucketHandle

func (*StorageClient) GetNewSignedURL

func (this *StorageClient) GetNewSignedURL(name string, expire time.Time) (string, error)

Jump to

Keyboard shortcuts

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