aws

package
v0.0.0-...-73532cf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 StartSession(key, secret, region string) bool

func StartSessionFromProfile

func StartSessionFromProfile(profile string) error

Types

type SimpleDB

type SimpleDB struct {
	Session *session.Session
	// contains filtered or unexported fields
}

func NewSimpleDB

func NewSimpleDB() (*SimpleDB, error)

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

func (sdb *SimpleDB) DeleteItem(domain string, item string) error

Delete an item and all its attributes

func (*SimpleDB) GetAttributes

func (sdb *SimpleDB) GetAttributes(domain string, item string) (map[string]string, error)

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

func (*SimpleDB) Select

func (sdb *SimpleDB) Select(SelectExpression string) (*simpledb.SelectOutput, error)

Make a select query

Jump to

Keyboard shortcuts

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