storage

package
v0.0.0-...-6152d30 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package storage communicates with google storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildStorageService

func BuildStorageService(serviceEmail string, key []byte) (*storage.Service, error)

BuildStorageService builds the singlton service for Storage

Types

type Manager

type Manager struct {
	*storage.Service `inject:""`
	// contains filtered or unexported fields
}

Manager manages google storage service

func (*Manager) GetObject

func (s *Manager) GetObject(bucketName, objectName string)

GetObject gets the google storage object

func (*Manager) ListBuckets

func (s *Manager) ListBuckets(projectID string)

lListBuckets lists all buckets under some bucket

func (*Manager) ListFilesUnderPath

func (s *Manager) ListFilesUnderPath(bucketName, path string) []*storage.Object

ListFilesUnderPath lists all files under some path

func (*Manager) ListObjectsUnderPath

func (s *Manager) ListObjectsUnderPath(bucketName, path string) []*storage.Object

ListObjectsUnderPath lists all objects under some path

func (*Manager) Setup

func (s *Manager) Setup()

Setup acts as init function

Jump to

Keyboard shortcuts

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