kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/cloudprovider/openstack Index | Files

package openstack

import "gopkg.in/kubernetes/kubernetes.v0/pkg/cloudprovider/openstack"


Package Files



const (
    MiB = 1024 * 1024
    GB  = 1000 * 1000 * 1000
const ProviderName = "openstack"


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) AddSSHKeyToAllInstances Uses

func (i *Instances) AddSSHKeyToAllInstances(user string, keyData []byte) error

func (*Instances) CurrentNodeName Uses

func (i *Instances) CurrentNodeName(hostname string) (string, error)

Implementation of Instances.CurrentNodeName

func (*Instances) ExternalID Uses

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

ExternalID returns the cloud provider ID of the specified instance (deprecated).

func (*Instances) GetNodeResources Uses

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

func (*Instances) InstanceID Uses

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

InstanceID returns the cloud provider ID of the specified instance.

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)

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 []*api.ServicePort, hosts []string, affinity api.ServiceAffinity) (*api.LoadBalancerStatus, error)

func (*LoadBalancer) EnsureTCPLoadBalancerDeleted Uses

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

func (*LoadBalancer) GetTCPLoadBalancer Uses

func (lb *LoadBalancer) GetTCPLoadBalancer(name, region string) (*api.LoadBalancerStatus, bool, 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) ProviderName Uses

func (os *OpenStack) ProviderName() string

ProviderName returns the cloud provider ID.

func (*OpenStack) Routes Uses

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

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 21 packages (graph). Updated 2018-03-04. Refresh now. Tools for package owners.