sdb

package
Version: v0.0.0-...-378618d Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2011 License: BSD-3-Clause, GooglePatentClause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_API_VERSION = "2009-04-15"

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrListType

type AttrListType string
const (
	ATTRIBUTE_LIST AttrListType = "Attribute."
	EXPECTED_LIST  AttrListType = "Expected."
)

type Attribute

type Attribute struct {
	Name    string
	Value   string
	Exists  *bool
	Replace *bool
}

func AttrEquals

func AttrEquals(name string, value string) Attribute

func AttrExists

func AttrExists(name string) Attribute

func AttrMissing

func AttrMissing(name string) Attribute

miscelanious helper functions.

type AttributeList

type AttributeList []Attribute

func (AttributeList) Values

func (self AttributeList) Values(afix AttrListType) (v http.Values)

type Domain

type Domain struct {
	URL *http.URL

	Name string
	// contains filtered or unexported fields
}

func (*Domain) Close

func (self *Domain) Close() (err os.Error)

Closes the underlying connection

func (*Domain) DeleteAttribute

func (self *Domain) DeleteAttribute(s *aws.Signer, item string, attrs, expected AttributeList) (err os.Error)

func (*Domain) GetAttribute

func (self *Domain) GetAttribute(s *aws.Signer, item string, attrs AttributeList, consist bool) (a []Attribute, err os.Error)

func (*Domain) Select

func (self *Domain) Select(id *aws.Signer, what, where string, consist bool, items chan<- Item) (err os.Error)

type Item

type Item struct {
	Name      string
	Attribute []Attribute
}

type Service

type Service struct {
	URL *http.URL
	// contains filtered or unexported fields
}

func NewService

func NewService(url *http.URL) *Service

func (*Service) Close

func (self *Service) Close() (err os.Error)

Closes the underlying connection

func (*Service) CreateDomain

func (self *Service) CreateDomain(id *aws.Signer, name string) (err os.Error)

func (*Service) DestroyDomain

func (self *Service) DestroyDomain(id *aws.Signer, name string) (err os.Error)

func (*Service) Domain

func (self *Service) Domain(name string) *Domain

func (*Service) ListDomains

func (self *Service) ListDomains(id *aws.Signer) (out []string, err os.Error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL