l.l.d.g.GoGridLBDriver(BaseGoGridDriver, Driver) : class documentation

Part of libcloud.loadbalancer.drivers.gogrid View Source View In Hierarchy

No class docstring
Method __init__ @inherits: L{Driver.__init__}
Method list_protocols Return a list of supported protocols.
Method list_balancers List all loadbalancers
Method ex_create_balancer_nowait @inherits: L{Driver.create_balancer}
Method create_balancer Create a new load balancer instance
Method destroy_balancer Destroy a load balancer
Method get_balancer Return a L{LoadBalancer} object.
Method balancer_attach_member Attach a member to balancer
Method balancer_detach_member Detach member from balancer
Method balancer_list_members Return list of members attached to balancer
Method _update_balancer Undocumented
Method _members_to_params Helper method to convert list of L{Member} objects to GET params.
Method _to_balancers Undocumented
Method _to_balancer Undocumented
Method _to_members Undocumented
Method _to_member Undocumented

Inherited from BaseGoGridDriver:

Method ex_list_ips Return list of IP addresses assigned to the account.
Method _get_ip Undocumented
Method _to_ip Undocumented
Method _to_ips Undocumented
Method _to_location Undocumented
Method _to_locations Undocumented
Method _get_first_ip Undocumented

Inherited from Driver:

Method update_balancer Sets the name, algorithm, protocol, or port on a load balancer.
Method balancer_attach_compute_node Attach a compute node as a member to the load balancer.
Method list_supported_algorithms Return algorithms supported by this driver.
Method _value_to_algorithm Return C{LBAlgorithm} based on the value.
Method _algorithm_to_value Return value based in the algorithm (C{LBAlgorithm}).

Inherited from BaseDriver (via Driver):

Method _ex_connection_class_kwargs Return extra connection keyword arguments which are passed to the Connection class constructor.
def __init__(self, *args, **kwargs): (source)
@inherits: L{Driver.__init__}
def list_protocols(self): (source)
Return a list of supported protocols.

@rtype: C{list} of C{str}
def list_balancers(self): (source)
List all loadbalancers

@rtype: C{list} of L{LoadBalancer}
def ex_create_balancer_nowait(self, name, members, protocol='http', port=80, algorithm=DEFAULT_ALGORITHM): (source)
@inherits: L{Driver.create_balancer}
def create_balancer(self, name, members, protocol='http', port=80, algorithm=DEFAULT_ALGORITHM): (source)
Create a new load balancer instance

@param name: Name of the new load balancer (required)
@type  name: C{str}

@param port: Port the load balancer should listen on, defaults to 80
@type  port: C{str}

@param protocol: Loadbalancer protocol, defaults to http.
@type  protocol: C{str}

@param members: list of Members to attach to balancer
@type  members: C{list} of L{Member}

@param algorithm: Load balancing algorithm, defaults to ROUND_ROBIN
@type algorithm: L{Algorithm}

@rtype: L{LoadBalancer}
def destroy_balancer(self, balancer): (source)
Destroy a load balancer

@param balancer: LoadBalancer which should be used
@type  balancer: L{LoadBalancer}

@return: True if the destroy was successful, otherwise False
@rtype: C{bool}
def get_balancer(self, **kwargs): (source)
Return a L{LoadBalancer} object.

@param balancer_id: id of a load balancer you want to fetch
@type  balancer_id: C{str}

@rtype: L{LoadBalancer}
def balancer_attach_member(self, balancer, member): (source)
Attach a member to balancer

@param balancer: LoadBalancer which should be used
@type  balancer: L{LoadBalancer}

@param member: Member to join to the balancer
@type member: L{Member}

@return: Member after joining the balancer.
@rtype: L{Member}
def balancer_detach_member(self, balancer, member): (source)
Detach member from balancer

@param balancer: LoadBalancer which should be used
@type  balancer: L{LoadBalancer}

@param member: Member which should be used
@type member: L{Member}

@return: True if member detach was successful, otherwise False
@rtype: C{bool}
def balancer_list_members(self, balancer): (source)
Return list of members attached to balancer

@param balancer: LoadBalancer which should be used
@type  balancer: L{LoadBalancer}

@rtype: C{list} of L{Member}
def _update_balancer(self, params): (source)
Undocumented
def _members_to_params(self, members): (source)
Helper method to convert list of L{Member} objects
to GET params.
def _to_balancers(self, object): (source)
Undocumented
def _to_balancer(self, el): (source)
Undocumented
def _to_members(self, object, balancer=None): (source)
Undocumented
def _to_member(self, el, balancer=None): (source)
Undocumented
API Documentation for libcloud, generated by pydoctor at 2013-07-01 17:02:02.