rackspace

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreateFlags

func GetCreateFlags() []cli.Flag

GetCreateFlags registers the "machine create" flags recognized by this driver, including their help text and defaults.

func NewDriver

func NewDriver(machineName string, storePath string, caCert string, privateKey string) (drivers.Driver, error)

NewDriver instantiates a Rackspace driver.

Types

type Client

type Client struct {
	openstack.GenericClient
	// contains filtered or unexported fields
}

Client is a Rackspace specialization of the generic OpenStack driver.

func (*Client) Authenticate

func (c *Client) Authenticate(d *openstack.Driver) error

Authenticate creates a Rackspace-specific Gophercloud client.

func (*Client) GetInstanceIpAddresses

func (c *Client) GetInstanceIpAddresses(d *openstack.Driver) ([]openstack.IpAddress, error)

GetInstanceIpAddresses can be short-circuited with the server's AccessIPv4Addr on Rackspace.

func (*Client) StartInstance

func (c *Client) StartInstance(d *openstack.Driver) error

StartInstance is unfortunately not supported on Rackspace at this time.

func (*Client) StopInstance

func (c *Client) StopInstance(d *openstack.Driver) error

StopInstance is unfortunately not support on Rackspace at this time.

type Driver

type Driver struct {
	*openstack.Driver

	APIKey string
}

Driver is a machine driver for Rackspace. It's a specialization of the generic OpenStack one.

func (*Driver) DriverName

func (d *Driver) DriverName() string

DriverName is the user-visible name of this driver.

func (*Driver) SetConfigFromFlags

func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error

SetConfigFromFlags assigns and verifies the command-line arguments presented to the driver.

Jump to

Keyboard shortcuts

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