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 LoadBalancer
- func (lb *LoadBalancer) CreateTCPLoadBalancer(name, region string, externalIP net.IP, ports []*api.ServicePort, ...) (*api.LoadBalancerStatus, error)
- func (lb *LoadBalancer) EnsureTCPLoadBalancerDeleted(name, region string) error
- func (lb *LoadBalancer) GetTCPLoadBalancer(name, region string) (*api.LoadBalancerStatus, bool, error)
- func (lb *LoadBalancer) UpdateTCPLoadBalancer(name, region string, hosts []string) error
- type LoadBalancerOpts
- type MyDuration
- type OpenStack
- func (os *OpenStack) Clusters() (cloudprovider.Clusters, bool)
- func (os *OpenStack) GetZone() (cloudprovider.Zone, error)
- func (os *OpenStack) Instances() (cloudprovider.Instances, bool)
- func (os *OpenStack) ProviderName() string
- func (os *OpenStack) Routes() (cloudprovider.Routes, bool)
- func (os *OpenStack) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
- func (os *OpenStack) Zones() (cloudprovider.Zones, bool)
Constants ¶
View Source
const ( MiB = 1024 * 1024 GB = 1000 * 1000 * 1000 )
View Source
const ProviderName = "openstack"
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.20.1
func (*Instances) CurrentNodeName ¶ added in v0.20.1
Implementation of Instances.CurrentNodeName
func (*Instances) ExternalID ¶ added in v0.13.1
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.2
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 LoadBalancer ¶ added in v0.8.0
type LoadBalancer struct {
// contains filtered or unexported fields
}
func (*LoadBalancer) CreateTCPLoadBalancer ¶ added in v0.8.0
func (lb *LoadBalancer) CreateTCPLoadBalancer(name, region string, externalIP net.IP, ports []*api.ServicePort, hosts []string, affinity api.ServiceAffinity) (*api.LoadBalancerStatus, error)
func (*LoadBalancer) EnsureTCPLoadBalancerDeleted ¶ added in v0.18.2
func (lb *LoadBalancer) EnsureTCPLoadBalancerDeleted(name, region string) error
func (*LoadBalancer) GetTCPLoadBalancer ¶ added in v0.18.2
func (lb *LoadBalancer) GetTCPLoadBalancer(name, region string) (*api.LoadBalancerStatus, bool, error)
func (*LoadBalancer) UpdateTCPLoadBalancer ¶ added in v0.8.0
func (lb *LoadBalancer) UpdateTCPLoadBalancer(name, region string, hosts []string) error
type LoadBalancerOpts ¶ added in v0.8.0
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 ¶ added in v0.8.0
encoding.TextUnmarshaler interface for time.Duration
func (*MyDuration) UnmarshalText ¶ added in v0.8.0
func (d *MyDuration) UnmarshalText(text []byte) error
type OpenStack ¶
type OpenStack struct {
// contains filtered or unexported fields
}
OpenStack is an implementation of cloud provider Interface for OpenStack.
func (*OpenStack) GetZone ¶ added in v0.8.0
func (os *OpenStack) GetZone() (cloudprovider.Zone, error)
func (*OpenStack) Instances ¶
func (os *OpenStack) Instances() (cloudprovider.Instances, bool)
Instances returns an implementation of Instances for OpenStack.
func (*OpenStack) ProviderName ¶ added in v0.18.2
ProviderName returns the cloud provider ID.
func (*OpenStack) Routes ¶ added in v0.18.2
func (os *OpenStack) Routes() (cloudprovider.Routes, bool)
func (*OpenStack) TCPLoadBalancer ¶
func (os *OpenStack) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
Click to show internal directories.
Click to hide internal directories.