kubernetes: github.com/erimatnor/kubernetes/pkg/cloudprovider/rackspace Index | Files

package rackspace

import "github.com/erimatnor/kubernetes/pkg/cloudprovider/rackspace"


Package Files



var ErrAttrNotFound = errors.New("Expected attribute not found")
var ErrMultipleResults = errors.New("Multiple results where only one expected")
var ErrNoAddressFound = errors.New("No address found for host")
var ErrNotFound = errors.New("Failed to find object")

type Config Uses

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 Uses

type Instances struct {
    // contains filtered or unexported fields

func (*Instances) Configure Uses

func (i *Instances) Configure(name string, spec *api.NodeSpec) error

func (*Instances) ExternalID Uses

func (i *Instances) ExternalID(name string) (string, error)

ExternalID returns the cloud provider ID of the specified instance.

func (*Instances) GetNodeResources Uses

func (i *Instances) GetNodeResources(name string) (*api.NodeResources, error)

func (*Instances) List Uses

func (i *Instances) List(name_filter string) ([]string, error)

func (*Instances) NodeAddresses Uses

func (i *Instances) NodeAddresses(name string) ([]api.NodeAddress, error)

func (*Instances) Release Uses

func (i *Instances) Release(name string) error

type LoadBalancerOpts Uses

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 Uses

type MyDuration struct {

encoding.TextUnmarshaler interface for time.Duration

func (*MyDuration) UnmarshalText Uses

func (d *MyDuration) UnmarshalText(text []byte) error

type Rackspace Uses

type Rackspace struct {
    // contains filtered or unexported fields

Rackspace is an implementation of cloud provider Interface for Rackspace.

func (*Rackspace) Clusters Uses

func (os *Rackspace) Clusters() (cloudprovider.Clusters, bool)

func (*Rackspace) GetZone Uses

func (os *Rackspace) GetZone() (cloudprovider.Zone, error)

func (*Rackspace) Instances Uses

func (os *Rackspace) Instances() (cloudprovider.Instances, bool)

Instances returns an implementation of Instances for Rackspace.

func (*Rackspace) TCPLoadBalancer Uses

func (os *Rackspace) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)

func (*Rackspace) Zones Uses

func (os *Rackspace) Zones() (cloudprovider.Zones, bool)

Package rackspace imports 17 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.