Documentation ¶
Index ¶
- Constants
- func AuthOptionsFromEnv() (gophercloud.AuthOptions, error)
- func Authenticate(client *gophercloud.ProviderClient, options gophercloud.AuthOptions) error
- func AuthenticateV2(client *gophercloud.ProviderClient, options gophercloud.AuthOptions) error
- func AuthenticatedClient(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)
- func NewBlockStorageV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewCDNV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewClient(endpoint string) (*gophercloud.ProviderClient, error)
- func NewComputeV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewDBV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewIdentityV2(client *gophercloud.ProviderClient) *gophercloud.ServiceClient
- func NewLBV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewNetworkV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewObjectCDNV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewObjectStorageV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewOrchestrationV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewRackConnectV3(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- type ErrNoAuthURL
- type ErrNoPassword
- type ErrNoUsername
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 ¶
This section is empty.
Functions ¶
func AuthOptionsFromEnv ¶
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 ¶
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 ¶
func AuthenticateV2(client *gophercloud.ProviderClient, options gophercloud.AuthOptions) error
AuthenticateV2 explicitly authenticates with v2 of the identity service.
func AuthenticatedClient ¶
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 NewBlockStorageV1 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func NewIdentityV2(client *gophercloud.ProviderClient) *gophercloud.ServiceClient
NewIdentityV2 creates a ServiceClient that may be used to access the v2 identity service.
func NewLBV1 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
Types ¶
type ErrNoAuthURL ¶
type ErrNoAuthURL struct{ *gophercloud.InvalidInputError }
func (*ErrNoAuthURL) Error ¶
func (e *ErrNoAuthURL) Error() string
type ErrNoPassword ¶
type ErrNoPassword struct{ *gophercloud.InvalidInputError }
func (*ErrNoPassword) Error ¶
func (e *ErrNoPassword) Error() string
type ErrNoUsername ¶
type ErrNoUsername struct{ *gophercloud.InvalidInputError }
func (*ErrNoUsername) Error ¶
func (e *ErrNoUsername) Error() string
Directories ¶
Path | Synopsis |
---|---|
blockstorage
|
|
v1/snapshots
Package snapshots provides information and interaction with the snapshot API resource for the Rackspace Block Storage service.
|
Package snapshots provides information and interaction with the snapshot API resource for the Rackspace Block Storage service. |
compute
|
|
v2/flavors
Package flavors provides information and interaction with the flavor API resource for the Rackspace Cloud Servers service.
|
Package flavors provides information and interaction with the flavor API resource for the Rackspace Cloud Servers service. |
v2/images
Package images provides information and interaction with the image API resource for the Rackspace Cloud Servers service.
|
Package images provides information and interaction with the image API resource for the Rackspace Cloud Servers service. |
v2/keypairs
Package keypairs provides information and interaction with the keypair API resource for the Rackspace Cloud Servers service.
|
Package keypairs provides information and interaction with the keypair API resource for the Rackspace Cloud Servers service. |
v2/servers
Package servers provides information and interaction with the server API resource for the Rackspace Cloud Servers service.
|
Package servers provides information and interaction with the server API resource for the Rackspace Cloud Servers service. |
v2/volumeattach
Package volumeattach provides the ability to attach and detach volume to instances to Rackspace servers
|
Package volumeattach provides the ability to attach and detach volume to instances to Rackspace servers |
db
|
|
identity
|
|
v2/tokens
Package tokens provides information and interaction with the token API resource for the Rackspace Identity service.
|
Package tokens provides information and interaction with the token API resource for the Rackspace Identity service. |
networking
|
|
objectstorage
|
|
v1/accounts
Package accounts provides information and interaction with the account API resource for the Rackspace Cloud Files service.
|
Package accounts provides information and interaction with the account API resource for the Rackspace Cloud Files service. |
v1/containers
Package containers provides information and interaction with the Container API resource for the Rackspace Cloud Files service.
|
Package containers provides information and interaction with the Container API resource for the Rackspace Cloud Files service. |
v1/objects
Package objects provides information and interaction with the Object API resource for the Rackspace Cloud Files service.
|
Package objects provides information and interaction with the Object API resource for the Rackspace Cloud Files service. |
orchestration
|
|
v1/buildinfo
Package buildinfo provides build information about heat deployments.
|
Package buildinfo provides build information about heat deployments. |
v1/stackevents
Package stackevents provides operations for finding, listing, and retrieving stack events.
|
Package stackevents provides operations for finding, listing, and retrieving stack events. |
v1/stackresources
Package stackresources provides operations for working with stack resources.
|
Package stackresources provides operations for working with stack resources. |
v1/stacks
Package stacks provides operation for working with Heat stacks.
|
Package stacks provides operation for working with Heat stacks. |
v1/stacktemplates
Package stacktemplates provides operations for working with Heat templates.
|
Package stacktemplates provides operations for working with Heat templates. |