Versions in this module Expand all Collapse all v0 v0.0.0 Jan 6, 2014 Changes in this version + const InternalURL + const PublicURL + var ErrConfiguration = fmt.Errorf("Missing or incomplete configuration") + var ErrCredentials = fmt.Errorf("Missing or incomplete credentials") + var ErrEndpoint = fmt.Errorf("Missing endpoint, or insufficient privileges to access endpoint") + var ErrError = fmt.Errorf(...) + var ErrNotImplemented = fmt.Errorf("Not implemented") + var ErrProvider = fmt.Errorf("Missing or incorrect provider") + var WarnUnauthoritative = fmt.Errorf("Unauthoritative data") + func ActualResponseCode(e error) (int, error) + type Access struct + ServiceCatalog []CatalogEntry + Token Token + User User + func Authenticate(provider string, options AuthOptions) (*Access, error) + func (a *Access) AuthToken() string + func (a *Access) FirstEndpointUrlByCriteria(ac ApiCriteria) string + func (a *Access) Reauthenticate() error + func (a *Access) Revoke(tok string) error + func (a *Access) V2ServiceCatalog() []CatalogEntry + type AccessProvider interface + AuthToken func() string + FirstEndpointUrlByCriteria func(ApiCriteria) string + Reauthenticate func() error + Revoke func(string) error + type AddressSet struct + Private []VersionedAddress + Public []VersionedAddress + type ApiCriteria struct + Name string + Region string + Type string + UrlChoice int + VersionId string + type ApiKeyCredentials struct + ApiKey string + Username string + type Auth struct + ApiKeyCredentials *ApiKeyCredentials + PasswordCredentials *PasswordCredentials + TenantId string + TenantName string + type AuthContainer struct + Auth Auth + type AuthOptions struct + AllowReauth bool + ApiKey string + Password string + TenantId string + TenantName string + Username string + type CatalogEntry struct + Endpoints []EntryEndpoint + Name string + Type string + type CloudServersProvider interface + ConfirmResize func(id string) error + CreateImage func(id string, ci CreateImage) (string, error) + CreateKeyPair func(nkp NewKeyPair) (KeyPair, error) + CreateServer func(ns NewServer) (*NewServer, error) + DeleteImageById func(id string) error + DeleteKeyPair func(name string) error + DeleteServerById func(id string) error + ImageById func(id string) (*Image, error) + ListAddresses func(id string) (AddressSet, error) + ListAddressesByNetwork func(id, networkLabel string) (NetworkAddress, error) + ListFlavors func() ([]Flavor, error) + ListImages func() ([]Image, error) + ListKeyPairs func() ([]KeyPair, error) + ListServers func() ([]Server, error) + ListServersLinksOnly func() ([]Server, error) + RebootServer func(id string, hard bool) error + RebuildServer func(id string, ns NewServer) (*Server, error) + RescueServer func(id string) (string, error) + ResizeServer func(id, newName, newFlavor, newDiskConfig string) error + RevertResize func(id string) error + ServerById func(id string) (*Server, error) + SetAdminPassword func(id string, pw string) error + ShowKeyPair func(name string) (KeyPair, error) + UnrescueServer func(id string) error + UpdateServer func(id string, newValues NewServerSettings) (*Server, error) + func ServersApi(acc AccessProvider, criteria ApiCriteria) (CloudServersProvider, error) + type Context struct + func TestContext() *Context + func (c *Context) Authenticate(provider string, options AuthOptions) (*Access, error) + func (c *Context) ProviderByName(name string) (p Provider, err error) + func (c *Context) RegisterProvider(name string, p Provider) error + func (c *Context) ResponseWithReauth(ap AccessProvider, f func() (*perigee.Response, error)) (*perigee.Response, error) + func (c *Context) ServersApi(acc AccessProvider, criteria ApiCriteria) (CloudServersProvider, error) + func (c *Context) UseCustomClient(hc *http.Client) *Context + func (c *Context) WithProvider(name string, p Provider) *Context + func (c *Context) WithReauth(ap AccessProvider, f func() error) error + func (c *Context) WithReauthHandler(f ReauthHandlerFunc) *Context + type CreateImage struct + Metadata map[string]string + Name string + type EntryEndpoint struct + InternalURL string + PublicURL string + Region string + TenantId string + VersionId string + VersionInfo string + VersionList string + func FindFirstEndpointByCriteria(entries []CatalogEntry, ac ApiCriteria) EntryEndpoint + type FileConfig struct + Contents string + Path string + type Flavor struct + Disk int + Id string + Links []Link + Name string + OsFlvDisabled bool + Ram int + RxTxFactor float64 + Swap int + VCpus int + type FlavorLink struct + Id string + Links []Link + type Image struct + Created string + Id string + Links []Link + MinDisk int + MinRam int + Name string + OsDcfDiskConfig string + Progress int + Status string + Updated string + type ImageLink struct + Id string + Links []Link + type KeyPair struct + FingerPrint string + Name string + PrivateKey string + PublicKey string + UserID string + type Link struct + Href string + Rel string + Type string + type NetworkAddress map[string][]VersionedAddress + type NetworkConfig struct + Uuid string + type NewKeyPair struct + Name string + PublicKey string + type NewServer struct + AdminPass string + FlavorRef string + Id string + ImageRef string + KeyPairName string + Links []Link + Metadata map[string]string + Name string + Networks []NetworkConfig + OsDcfDiskConfig string + Personality []FileConfig + type NewServerSettings struct + AccessIPv4 string + AccessIPv6 string + Name string + type PasswordCredentials struct + Password string + Username string + type Provider struct + AuthEndpoint string + type RaxBandwidth struct + AuditPeriodEnd string + AuditPeriodStart string + BandwidthInbound int64 + BandwidthOutbound int64 + Interface string + type ReauthHandlerFunc func(AccessProvider) error + type ResizeRequest struct + DiskConfig string + FlavorRef string + Name string + type Role struct + Description string + Id string + Name string + type Server struct + AccessIPv4 string + AccessIPv6 string + Addresses AddressSet + Created string + Flavor FlavorLink + HostId string + Id string + Image ImageLink + Links []Link + Metadata map[string]string + Name string + OsDcfDiskConfig string + OsExtStsPowerState int + OsExtStsTaskState string + OsExtStsVmState string + Progress int + RaxBandwidth []RaxBandwidth + Status string + TenantId string + Updated string + UserId string + type ServiceCatalogerForIdentityV2 interface + V2ServiceCatalog func() []CatalogEntry + type Tenant struct + Id string + Name string + type Token struct + Expires string + Id string + Tenant Tenant + type User struct + Id string + Name string + Roles []Role + XRaxDefaultRegion string + type VersionedAddress struct + Addr string + Version int