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

package openstack

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


Package Files



const (
    MiB = 1024 * 1024
    GB  = 1000 * 1000 * 1000


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 LoadBalancer Uses

type LoadBalancer struct {
    // contains filtered or unexported fields

func (*LoadBalancer) CreateTCPLoadBalancer Uses

func (lb *LoadBalancer) CreateTCPLoadBalancer(name, region string, externalIP net.IP, ports []int, hosts []string, affinity api.AffinityType) (string, error)

func (*LoadBalancer) DeleteTCPLoadBalancer Uses

func (lb *LoadBalancer) DeleteTCPLoadBalancer(name, region string) error

func (*LoadBalancer) GetTCPLoadBalancer Uses

func (lb *LoadBalancer) GetTCPLoadBalancer(name, region string) (endpoint string, exists bool, err error)

func (*LoadBalancer) UpdateTCPLoadBalancer Uses

func (lb *LoadBalancer) UpdateTCPLoadBalancer(name, region string, hosts []string) error

type LoadBalancerOpts Uses

type LoadBalancerOpts struct {
    SubnetId          string     `gcfg:"subnet-id"` // required
    LBMethod          string     `gfcg:"lb-method"`
    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 OpenStack Uses

type OpenStack struct {
    // contains filtered or unexported fields

OpenStack is an implementation of cloud provider Interface for OpenStack.

func (*OpenStack) Clusters Uses

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

func (*OpenStack) GetZone Uses

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

func (*OpenStack) Instances Uses

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

Instances returns an implementation of Instances for OpenStack.

func (*OpenStack) TCPLoadBalancer Uses

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

func (*OpenStack) Zones Uses

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

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