Bases: object
Creates an authorized connection to EC2 containing wrappers for Query API calls.
Each API call has a matching method on this class to perform the appropriate E2 action.
@ivar verbose: Verbosity flag, defaults to false. If set to true, some debug information is printed.
Makes an C{AllocateAddress} call.
Makes an C{AssociateAddress} call.
@param publicIp: Address to associate @param instanceId: Instance to associate address with
Processes parameters for C{authorize} and C{revoke}.
@param groupName: Name of security group to modify.
@param ipProtocol: IP protocol in rule. Valid vlaues are C{‘tcp’}, C{‘udp’} and C{‘icmp’}.
@param fromPort: Bottom of IP port range in rule.
@param toPort: Top of IP port range in rule.
@param cidrIp: CIDR IP range in rule.
@param sourceSecurityGroupName: Security group name in rule.
@param sourceSecurityGroupOwnerId: User id of security group in rule.
Makes an C{AuthorizeSecurityGroupIngress} call.
L{authorize} and L{revoke} share parameter parsing code. See L{auth_revoke_impl} for parameters. Also, see API docs for details of valid parameter combinations.
Makes a C{ConfirmProdcutInstance} call.
@param productCode: The product code to confirm
@param instanceId: The instance for which to confirm the product code.
Makes a C{CreateKeypair} call.
@param keyName: Name for the new keypair.
Makes a C{CreateSecurityGroup} call.
@param groupName: Name of group to create.
@param groupDescription: Brief description of security group.
Makes a C{DeleteKeypair} call.
@param keyName: Name of keypair to delete.
Makes a C{DeleteSecurityGroup} call.
@param groupName: Name of security group to delete.
Makes a C{DeregisterImage} call.
@param imageId: The image id to deregister.
Makes a C{DescribeAddresses} call.
@param publicIps: List of addresses to describe. If empty or omitted, all addresses will be described.
Makes a C{DescribeAvailabilityZones} call.
@param zoneNames: List of availability zones to describe. If empty or omitted, all availability zones will be described.
Makes a C{DescribeImageAttribute} call.
@param imageId: AMI to describe attribute of.
@param attribute: Name of attribute to describe.
Makes a C{DescribeImages} call.
@param imageIds: List of images to describe. If empty or omitted, all images visible to the user are returned.
@param owners: List of users to filter returned images by owner. If empty or omitted, no filtering is done.
@param executableBy: List of users (or user groups) to filter returned images by execution permissions. If empty or omitted, no filtering is done.
Makes a C{DescribeInstances} call.
@param instanceIds: List of instances to describe. If empty or omitted, all instances will be returned.
Makes a C{DescribeKeypairs} call.
@param keyNames: List of keypairs to describe. If empty or omitted, all keypairs are returned.
Makes a C{DescribeSecurityGroups} call.
@param groupNames: List of security groups to describe. If empty or omitted, all security groups will be described.
Makes a C{DisassociateAddress} call.
@param publicIp: Address to disassociate
Makes a C{GetConsoleOutput} call.
@param instanceId: Instance from which to get console output.
Makes a C{ModifyImageAttribute} call.
@param imageId: AMI to modify attribute of.
@param attribute: Name of attribute to modify.
@param operationType: Operation to perform on attribute.
@param kwargs: Values for the attribute operation, documented below.
@kwarg userIds: List of userIds (valid with C{‘launchPermission’} attribute.)
@kwarg userGroups: List of userGroups (valid with C{‘launchPermission’} attribute.)
Converts a key and an array of values into AWS query param format.
Makes a C{RebootInstances} call.
@param instanceIds: List of instances to reboot.
Makes a C{RegisterImage} call.
@param imageLocation: The location of the image manifest to register in S3.
Makes a C{ReleaseAddress} call.
@param publicIp: Address to release
Makes a C{ResetImageAttribute} call.
@param imageId: AMI to reset attribute of.
@param attribute: Name of attribute to reset.
Makes an C{RevokeSecurityGroupIngress} call.
L{authorize} and L{revoke} share parameter parsing code. See L{auth_revoke_impl} for parameters. Also, see API docs for details of valid parameter combinations.
Makes a C{RunInstances} call.
@param imageId: AMI id to launch instances of.
@param minCount: Minimum number of instances to launch. If EC2 cannot launch at least this many, the call will fail.
@param maxCount: Maximum number of instances to launch. EC2 will make a best-effort attempt to launch this many instances, but will not fail unless fewer than C{minCount} are available.
@param keyName: Name of keypair to launch instances with.
@param groupIds: List of security groups to launch instances in.
@param userData: String containing user data to inject into launched instances.
@param base64Encode: Specifies whether C{userData} string qshould be base64 encoded. Defaults to True.
@param addressingType: Specifies the address scheme to use for the instance. The supported (default) type is C{“public”}, or C{None} for the default. See the “Instance Addressing” section of the latest developer guide for more information.
@param availabilityZone: Specifies the availability zone to launch in.
@param kernelId: Kernel to launch the instances with.
@param ramdiskId: Ramdisk to launch the instances with.
@param blockDeviceMapping: Specifies the virtual block device mapping. This parameter is a list of two element lists or tuples. The first element is the virtual name and the second is the device name.
Makes a C{TerminateInstances} call.
@param instanceIds: List of instances to terminate.
Bases: cbtestlib.EC2.Response
Response parser class for C{AllocateAddress} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{AssociateAddress} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{AuthorizeSecurityGroupIngress} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{ConfirmProductInstance} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{CreateKeyPair} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{CreateSecurityGroup} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DeleteKeyPair} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DeleteSecurityGroup} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DeregisterImage} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DescribeAddresses} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DescribeAvailabilityZones} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DescribeImageAttribute} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DescribeImages} API call.
Bases: cbtestlib.EC2.InstanceSetResponse
Response parser class for C{DescribeInstances} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DescribeKeyPairs} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DescribeSecurityGroups} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{DisassociateAddress} API call.
Bases: cbtestlib.EC2.Response
Bases: cbtestlib.EC2.Response
Response containing instance set items
Parse a set of instanceSet/item nodes
Bases: cbtestlib.EC2.Response
Response parser class for C{ModifyImageAttribute} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{RebootInstances} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{RegisterImage} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{ReleaseAddress} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{ResetImageAttribute} API call.
Bases: object
Base class for XML response parsers.
This class does everything except the API-call dependent parsing, which is handled in the child classes below. Each child class should override the L{parse} method.
Bases: cbtestlib.EC2.Response
Response parser class for C{RevokeSecurityGroupIngress} API call.
Bases: cbtestlib.EC2.InstanceSetResponse
Response parser class for C{RunInstances} API call.
Bases: cbtestlib.EC2.Response
Response parser class for C{TerminateInstances} API call.
Bases: object
Bases: exceptions.Exception
Bases: object
Ascii memcached test client.
Bases: object
Simple ascii memcached client.
Add a value in the memcached server iff it doesn’t already exist.
CAS in a new value for the given key and comparison value.
Decrement or create the named counter.
Delete the value for a given key within the memcached server.
Flush all storage in a memcached instance.
Get the value for a given key and touch it within the memcached server.
Get the value for a given key within the memcached server.
Get values for any available keys in the given iterable. Returns a dict of matched keys to their values.
Get the value for a given key within the memcached server.
Increment or create the named counter.
Replace a value in the memcached server iff it already exists.
Set a value in the memcached server.
Get stats.
Touch a key in the memcached server.
Get the value for a given key within the memcached server.
Bases: exceptions.Exception
Error raised when a command fails.
Binary memcached test client.
Copyright (c) 2007 Dustin Sallings <dustin@spy.net>
Bases: object
Simple memcached client.
Add a value in the memcached server iff it doesn’t already exist.
CAS in a new value for the given key and comparison value.
Decrement or create the named counter.
Delete the value for a given key within the memcached server.
Deregister the TAP client with a given name.
Flush all storage in a memcached instance.
Get the value for a given key and touch it within the memcached server.
Get the value for a given key within the memcached server.
Get the metadata for a given key within the memcached server.
Get values for any available keys in the given iterable.
Returns a dict of matched keys to their values.
Get the value for a given key within the memcached server.
Get the value for a given key within the memcached server from a replica vbucket.
Increment or create the named counter.
Send a noop command.
Observe a key for persistence and replication.
Replace a value in the memcached server iff it already exists.
Reset the replication chain.
Notify the server that we’re done restoring.
Initiate restore of a given file.
Start a plan auth session.
Perform plain auth.
Start a sasl auth session.
Get the supported SASL methods.
sends a get message without parsing the response
Set a value in the memcached server without handling the response
Set a value in the memcached server.
Multi-set (using setq).
Give me (key, value) pairs.
Get stats.
Touch a key in the memcached server.
Get the value for a given key within the memcached server.
Bases: exceptions.Exception
Error raised when a command fails.
A memcached test server.
Copyright (c) 2007 Dustin Sallings <dustin@spy.net>
Bases: object
Higher-level backend (processes commands and stuff).
Handle a noop
invoked for any unknown command.
Entry point for command processing. Lower level protocol implementations deliver values here.
Bases: cbtestlib.mc_bin_server.BaseBackend
Sample backend implementation with a non-expiring dict.
Copyright (c) 2007 Dustin Sallings <dustin@spy.net>
TAP protocol client library.
Copyright (c) 2010 Dustin Sallings <dustin@spy.net>
Bases: object
Bases: object
Bases: object
Bases: object