gophercloud: github.com/rackspace/gophercloud/rackspace Index | Files | Directories

package rackspace

import "github.com/rackspace/gophercloud/rackspace"

Index

Package Files

auth_env.go client.go

Constants

const (
    // RackspaceUSIdentity is an identity endpoint located in the United States.
    RackspaceUSIdentity = "https://identity.api.rackspacecloud.com/v2.0/"

    // RackspaceUKIdentity is an identity endpoint located in the UK.
    RackspaceUKIdentity = "https://lon.identity.api.rackspacecloud.com/v2.0/"
)

Variables

var (
    ErrNoAuthURL  = fmt.Errorf("Environment variable RS_AUTH_URL or OS_AUTH_URL need to be set.")
    ErrNoUsername = fmt.Errorf("Environment variable RS_USERNAME or OS_USERNAME need to be set.")
    ErrNoPassword = fmt.Errorf("Environment variable RS_API_KEY or RS_PASSWORD needs to be set.")
)

ErrNoAuthUrl, ErrNoUsername, and ErrNoPassword errors indicate of the required RS_AUTH_URL, RS_USERNAME, or RS_PASSWORD environment variables, respectively, remain undefined. See the AuthOptions() function for more details.

func AuthOptionsFromEnv Uses

func AuthOptionsFromEnv() (gophercloud.AuthOptions, error)

AuthOptionsFromEnv fills out an identity.AuthOptions structure with the settings found on the various Rackspace RS_* environment variables.

func Authenticate Uses

func Authenticate(client *gophercloud.ProviderClient, options gophercloud.AuthOptions) error

Authenticate or re-authenticate against the most recent identity service supported at the provided endpoint.

func AuthenticateV2 Uses

func AuthenticateV2(client *gophercloud.ProviderClient, options gophercloud.AuthOptions) error

AuthenticateV2 explicitly authenticates with v2 of the identity service.

func AuthenticatedClient Uses

func AuthenticatedClient(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)

AuthenticatedClient logs in to Rackspace with the provided credentials and constructs a ProviderClient that's ready to operate.

If the provided AuthOptions does not specify an explicit IdentityEndpoint, it will default to the canonical, production Rackspace US identity endpoint.

func NewAutoScaleV1 Uses

func NewAutoScaleV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewAutoScaleV1 creates a ServiceClient that may be used to access the v1 Auto Scale service.

func NewBlockStorageV1 Uses

func NewBlockStorageV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewBlockStorageV1 creates a ServiceClient that can be used to access the Rackspace Cloud Block Storage v1 API.

func NewCDNV1 Uses

func NewCDNV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewCDNV1 creates a ServiceClient that may be used to access the Rackspace v1 CDN service.

func NewClient Uses

func NewClient(endpoint string) (*gophercloud.ProviderClient, error)

NewClient creates a client that's prepared to communicate with the Rackspace API, but is not yet authenticated. Most users will probably prefer using the AuthenticatedClient function instead.

Provide the base URL of the identity endpoint you wish to authenticate against as "endpoint". Often, this will be either RackspaceUSIdentity or RackspaceUKIdentity.

func NewComputeV2 Uses

func NewComputeV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewComputeV2 creates a ServiceClient that may be used to access the v2 compute service.

func NewDBV1 Uses

func NewDBV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewDBV1 creates a ServiceClient that may be used to access the v1 DB service.

func NewIdentityV2 Uses

func NewIdentityV2(client *gophercloud.ProviderClient) *gophercloud.ServiceClient

NewIdentityV2 creates a ServiceClient that may be used to access the v2 identity service.

func NewLBV1 Uses

func NewLBV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewLBV1 creates a ServiceClient that can be used to access the Rackspace Cloud Load Balancer v1 API.

func NewNetworkV2 Uses

func NewNetworkV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewNetworkV2 creates a ServiceClient that can be used to access the Rackspace Networking v2 API.

func NewObjectCDNV1 Uses

func NewObjectCDNV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewObjectCDNV1 creates a ServiceClient that may be used with the Rackspace v1 CDN.

func NewObjectStorageV1 Uses

func NewObjectStorageV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewObjectStorageV1 creates a ServiceClient that may be used with the Rackspace v1 object storage package.

func NewOrchestrationV1 Uses

func NewOrchestrationV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewOrchestrationV1 creates a ServiceClient that may be used to access the v1 orchestration service.

func NewRackConnectV3 Uses

func NewRackConnectV3(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)

NewRackConnectV3 creates a ServiceClient that may be used to access the v3 RackConnect service.

Directories

PathSynopsis
blockstorage/v1/snapshotsPackage snapshots provides information and interaction with the snapshot API resource for the Rackspace Block Storage service.
blockstorage/v1/volumesPackage volumes provides information and interaction with the volume API resource for the Rackspace Block Storage service.
blockstorage/v1/volumetypesPackage volumetypes provides information and interaction with the volume type API resource for the Rackspace Block Storage service.
cdn/v1/basePackage base provides information and interaction with the base API resource in the Rackspace CDN service.
cdn/v1/flavorsPackage flavors provides information and interaction with the flavors API resource in the Rackspace CDN service.
cdn/v1/serviceassetsPackage serviceassets provides information and interaction with the serviceassets API resource in the Rackspace CDN service.
cdn/v1/servicesPackage services provides information and interaction with the services API resource in the Rackspace CDN service.
compute/v2/bootfromvolume
compute/v2/flavorsPackage flavors provides information and interaction with the flavor API resource for the Rackspace Cloud Servers service.
compute/v2/imagesPackage images provides information and interaction with the image API resource for the Rackspace Cloud Servers service.
compute/v2/keypairsPackage keypairs provides information and interaction with the keypair API resource for the Rackspace Cloud Servers service.
compute/v2/networksPackage networks provides information and interaction with the network API resource for the Rackspace Cloud Servers service.
compute/v2/serversPackage servers provides information and interaction with the server API resource for the Rackspace Cloud Servers service.
compute/v2/virtualinterfaces
compute/v2/volumeattachPackage volumeattach provides the ability to attach and detach volume to instances to Rackspace servers
identity/v2/extensionsPackage extensions provides information and interaction with the all the extensions available for the Rackspace Identity service.
identity/v2/roles
identity/v2/tenantsPackage tenants provides information and interaction with the tenant API resource for the Rackspace Identity service.
identity/v2/tokensPackage tokens provides information and interaction with the token API resource for the Rackspace Identity service.
identity/v2/users
lb/v1/aclPackage acl provides information and interaction with the access lists feature of the Rackspace Cloud Load Balancer service.
lb/v1/lbsPackage lbs provides information and interaction with the Load Balancer API resource for the Rackspace Cloud Load Balancer service.
lb/v1/monitorsPackage monitors provides information and interaction with the Health Monitor API resource for the Rackspace Cloud Load Balancer service.
lb/v1/nodesPackage nodes provides information and interaction with the Node API resource for the Rackspace Cloud Load Balancer service.
lb/v1/sessionsPackage sessions provides information and interaction with the Session Persistence feature of the Rackspace Cloud Load Balancer service.
lb/v1/sslPackage ssl provides information and interaction with the SSL Termination feature of the Rackspace Cloud Load Balancer service.
lb/v1/throttlePackage throttle provides information and interaction with the Connection Throttling feature of the Rackspace Cloud Load Balancer service.
lb/v1/vipsPackage vips provides information and interaction with the Virtual IP API resource for the Rackspace Cloud Load Balancer service.
objectstorage/v1/accountsPackage accounts provides information and interaction with the account API resource for the Rackspace Cloud Files service.
objectstorage/v1/bulkPackage bulk provides functionality for working with bulk operations in the Rackspace Cloud Files service.
objectstorage/v1/cdncontainersPackage cdncontainers provides information and interaction with the CDN Container API resource for the Rackspace Cloud Files service.
objectstorage/v1/cdnobjectsPackage cdnobjects provides information and interaction with the CDN Object API resource for the Rackspace Cloud Files service.
objectstorage/v1/containersPackage containers provides information and interaction with the Container API resource for the Rackspace Cloud Files service.
objectstorage/v1/objectsPackage objects provides information and interaction with the Object API resource for the Rackspace Cloud Files service.

Package rackspace imports 6 packages (graph) and is imported by 192 packages. Updated 2016-07-14. Refresh now. Tools for package owners.