Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Instances
- func (i *Instances) AddSSHKeyToAllInstances(user string, keyData []byte) error
- func (i *Instances) CurrentNodeName(hostname string) (string, error)
- func (i *Instances) ExternalID(name string) (string, error)
- func (i *Instances) GetNodeResources(name string) (*api.NodeResources, error)
- func (i *Instances) InstanceID(name string) (string, error)
- func (i *Instances) List(name_filter string) ([]string, error)
- func (i *Instances) NodeAddresses(name string) ([]api.NodeAddress, error)
- type LoadBalancerOpts
- type MyDuration
- type Rackspace
- func (os *Rackspace) Clusters() (cloudprovider.Clusters, bool)
- func (os *Rackspace) GetZone() (cloudprovider.Zone, error)
- func (os *Rackspace) Instances() (cloudprovider.Instances, bool)
- func (os *Rackspace) ProviderName() string
- func (os *Rackspace) Routes() (cloudprovider.Routes, bool)
- func (os *Rackspace) ScrubDNS(nameservers, searches []string) (nsOut, srchOut []string)
- func (os *Rackspace) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
- func (os *Rackspace) Zones() (cloudprovider.Zones, bool)
Constants ¶
View Source
const ProviderName = "rackspace"
Variables ¶
View Source
var ErrAttrNotFound = errors.New("Expected attribute not found")
View Source
var ErrMultipleResults = errors.New("Multiple results where only one expected")
View Source
var ErrNoAddressFound = errors.New("No address found for host")
View Source
var ErrNotFound = errors.New("Failed to find object")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Global struct { AuthUrl string `gcfg:"auth-url"` Username string UserId string `gcfg:"user-id"` Password string ApiKey string `gcfg:"api-key"` TenantId string `gcfg:"tenant-id"` TenantName string `gcfg:"tenant-name"` DomainId string `gcfg:"domain-id"` DomainName string `gcfg:"domain-name"` Region string } LoadBalancer LoadBalancerOpts }
type Instances ¶
type Instances struct {
// contains filtered or unexported fields
}
func (*Instances) AddSSHKeyToAllInstances ¶ added in v0.19.0
func (*Instances) CurrentNodeName ¶ added in v0.20.0
Implementation of Instances.CurrentNodeName
func (*Instances) ExternalID ¶
ExternalID returns the cloud provider ID of the specified instance (deprecated).
func (*Instances) GetNodeResources ¶
func (i *Instances) GetNodeResources(name string) (*api.NodeResources, error)
func (*Instances) InstanceID ¶ added in v0.18.0
InstanceID returns the cloud provider ID of the specified instance.
func (*Instances) NodeAddresses ¶ added in v0.13.1
func (i *Instances) NodeAddresses(name string) ([]api.NodeAddress, error)
type LoadBalancerOpts ¶
type LoadBalancerOpts struct { SubnetId string `gcfg:"subnet-id"` // required CreateMonitor bool `gcfg:"create-monitor"` MonitorDelay MyDuration `gcfg:"monitor-delay"` MonitorTimeout MyDuration `gcfg:"monitor-timeout"` MonitorMaxRetries uint `gcfg:"monitor-max-retries"` }
type MyDuration ¶
encoding.TextUnmarshaler interface for time.Duration
func (*MyDuration) UnmarshalText ¶
func (d *MyDuration) UnmarshalText(text []byte) error
type Rackspace ¶
type Rackspace struct {
// contains filtered or unexported fields
}
Rackspace is an implementation of cloud provider Interface for Rackspace.
func (*Rackspace) Instances ¶
func (os *Rackspace) Instances() (cloudprovider.Instances, bool)
Instances returns an implementation of Instances for Rackspace.
func (*Rackspace) ProviderName ¶ added in v0.18.0
ProviderName returns the cloud provider ID.
func (*Rackspace) Routes ¶ added in v0.18.0
func (os *Rackspace) Routes() (cloudprovider.Routes, bool)
func (*Rackspace) TCPLoadBalancer ¶
func (os *Rackspace) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
Click to show internal directories.
Click to hide internal directories.