storage

package
v0.0.0-...-6740b9f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud struct {
	AppEngineContext appengine.Context
	// contains filtered or unexported fields
}

func NewCloud

func NewCloud(appEngineContext appengine.Context) *Cloud

func (*Cloud) Save

func (self *Cloud) Save(cloudObject *CloudObject) error

type CloudObject

type CloudObject struct {
	Bucket      string
	ObjectName  string
	ContentType string
	Content     io.Reader
}

func NewCloudObject

func NewCloudObject(content io.Reader) *CloudObject

func (*CloudObject) CreateURLPath

func (self *CloudObject) CreateURLPath() string

func (*CloudObject) URLPath

func (self *CloudObject) URLPath() string

func (*CloudObject) WithBucket

func (self *CloudObject) WithBucket(bucket string) *CloudObject

func (*CloudObject) WithContentType

func (self *CloudObject) WithContentType(contentType string) *CloudObject

func (*CloudObject) WithObjectName

func (self *CloudObject) WithObjectName(objectName string) *CloudObject

type Datastore

type Datastore struct {
	AppEngineContext appengine.Context
	// contains filtered or unexported fields
}

func NewDatastore

func NewDatastore(appEngineContext appengine.Context, kind string) *Datastore

func (*Datastore) Delete

func (self *Datastore) Delete(id int64) error

func (*Datastore) Find

func (self *Datastore) Find(id int64, entity interface{}) (int64, error)

func (*Datastore) FindAll

func (self *Datastore) FindAll(query *datastore.Query, entities interface{}) ([]int64, error)

func (*Datastore) FindMulti

func (self *Datastore) FindMulti(ids []int64, entities interface{}) error

func (*Datastore) Save

func (self *Datastore) Save(entity interface{}) (int64, error)

func (*Datastore) Update

func (self *Datastore) Update(id int64, entity interface{}) error

Jump to

Keyboard shortcuts

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