Part of libcloud.utils View Source
Function | get_driver | Get a driver. |
Function | merge_valid_keys | Merge valid keys from extra into params dictionary and return dictionary with keys which have been merged. |
Function | get_new_obj | No summary |
Function | str2dicts | Create a list of dictionaries from a whitespace and newline delimited text. |
Function | str2list | Create a list of values from a whitespace and newline delimited text (keys are ignored). |
Function | dict2str | Create a string with a whitespace and newline delimited text from a dictionary. |
Function | reverse_dict | Undocumented |
Function | lowercase_keys | Undocumented |
Get a driver. @param drivers: Dictionary containing valid providers. @param provider: Id of provider to get driver @type provider: L{libcloud.types.Provider}
Merge valid keys from extra into params dictionary and return dictionary with keys which have been merged. Note: params is modified in place.
Pass attributes from the existing object 'obj' and attributes dictionary to a 'klass' constructor. Attributes from 'attributes' dictionary are only passed to the constructor if they are not None.
Create a list of dictionaries from a whitespace and newline delimited text. For example, this: cpu 1100 ram 640 cpu 2200 ram 1024 becomes: [{'cpu': '1100', 'ram': '640'}, {'cpu': '2200', 'ram': '1024'}]
Create a list of values from a whitespace and newline delimited text (keys are ignored). For example, this: ip 1.2.3.4 ip 1.2.3.5 ip 1.2.3.6 becomes: ['1.2.3.4', '1.2.3.5', '1.2.3.6']
Create a string with a whitespace and newline delimited text from a dictionary. For example, this: {'cpu': '1100', 'ram': '640', 'smp': 'auto'} becomes: cpu 1100 ram 640 smp auto cpu 2200 ram 1024