Documentation ¶
Overview ¶
Package cloudprovider supplies interfaces and implementations for cloud service providers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCloudProvider ¶
RegisterCloudProvider registers a cloudprovider.Factory by name. This is expected to happen during app startup.
Types ¶
type Instances ¶
type Instances interface { // IPAddress returns an IP address of the specified instance. IPAddress(name string) (net.IP, error) // List lists instances that match 'filter' which is a regular expression which must match the entire instance name (fqdn) List(filter string) ([]string, error) }
Instances is an abstract, pluggable interface for sets of instances.
type Interface ¶
type Interface interface { // TCPLoadBalancer returns a balancer interface. Also returns true if the interface is supported, false otherwise. TCPLoadBalancer() (TCPLoadBalancer, bool) // Instances returns an instances interface. Also returns true if the interface is supported, false otherwise. Instances() (Instances, bool) // Zones returns a zones interface. Also returns true if the interface is supported, false otherwise. Zones() (Zones, bool) }
Interface is an abstract, pluggable interface for cloud providers
func GetCloudProvider ¶
GetCloudProvider creates an instance of the named cloud provider, or nil if the name is not known. The error return is only used if the named provider was known but failed to initialize.
type TCPLoadBalancer ¶
type TCPLoadBalancer interface { // TCPLoadBalancerExists returns whether the specified load balancer exists. // TODO: Break this up into different interfaces (LB, etc) when we have more than one type of service TCPLoadBalancerExists(name, region string) (bool, error) // CreateTCPLoadBalancer creates a new tcp load balancer. CreateTCPLoadBalancer(name, region string, port int, hosts []string) error // UpdateTCPLoadBalancer updates hosts under the specified load balancer. UpdateTCPLoadBalancer(name, region string, hosts []string) error // DeleteTCPLoadBalancer deletes a specified load balancer. DeleteTCPLoadBalancer(name, region string) error }
TCPLoadBalancer is an abstract, pluggable interface for TCP load balancers.
Click to show internal directories.
Click to hide internal directories.