Documentation ¶
Index ¶
- Variables
- func S3_ListObjects(bucket, prefix, delimeter string) (*s3.ListObjectsOutput, bool)
- func StartSession(key, secret, region string) bool
- func StartSessionFromProfile(profile string) error
- type SimpleDB
- func (sdb *SimpleDB) CreateDomain(name string) (*simpledb.CreateDomainOutput, error)
- func (sdb *SimpleDB) DeleteDomain(name string) (*simpledb.DeleteDomainOutput, error)
- func (sdb *SimpleDB) DeleteItem(domain string, item string) error
- func (sdb *SimpleDB) GetAttributes(domain string, item string) (map[string]string, error)
- func (sdb *SimpleDB) ListDomains() (*simpledb.ListDomainsOutput, error)
- func (sdb *SimpleDB) PutAttributes(domain string, itemName string, attributes []*simpledb.ReplaceableAttribute) (*simpledb.PutAttributesOutput, error)
- func (sdb *SimpleDB) Select(SelectExpression string) (*simpledb.SelectOutput, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Session *session.Session
Functions ¶
func S3_ListObjects ¶
func S3_ListObjects(bucket, prefix, delimeter string) (*s3.ListObjectsOutput, bool)
ListObjects lists objects in an S3 AWS bucket
func StartSession ¶
func StartSessionFromProfile ¶
Types ¶
type SimpleDB ¶
func NewSimpleDB ¶
Return a new SimpleDB instance. Call StartSession or StartSessionFromProfile before this func.
func (*SimpleDB) CreateDomain ¶
func (sdb *SimpleDB) CreateDomain(name string) (*simpledb.CreateDomainOutput, error)
Create a domain (idempotent function)
func (*SimpleDB) DeleteDomain ¶
func (sdb *SimpleDB) DeleteDomain(name string) (*simpledb.DeleteDomainOutput, error)
Delete a domain
func (*SimpleDB) DeleteItem ¶
Delete an item and all its attributes
func (*SimpleDB) GetAttributes ¶
Returns all the attributes for an item
func (*SimpleDB) ListDomains ¶
func (sdb *SimpleDB) ListDomains() (*simpledb.ListDomainsOutput, error)
Returns a list of domain, up to 100 domains in the list
func (*SimpleDB) PutAttributes ¶
func (sdb *SimpleDB) PutAttributes(domain string, itemName string, attributes []*simpledb.ReplaceableAttribute) (*simpledb.PutAttributesOutput, error)
Put attributes into AWS simple db
Click to show internal directories.
Click to hide internal directories.