libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r894769 - /incubator/libcloud/trunk/libcloud/base.py
Date Thu, 31 Dec 2009 02:31:38 GMT
Author: pquerna
Date: Thu Dec 31 02:31:37 2009
New Revision: 894769

URL: http://svn.apache.org/viewvc?rev=894769&view=rev
Log:
Add authentication base classes for SSH keys and passwords

Modified:
    incubator/libcloud/trunk/libcloud/base.py

Modified: incubator/libcloud/trunk/libcloud/base.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/base.py?rev=894769&r1=894768&r2=894769&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/base.py (original)
+++ incubator/libcloud/trunk/libcloud/base.py Thu Dec 31 02:31:37 2009
@@ -123,15 +123,28 @@
     """
     interface.implements(INodeOptions)
     interface.classProvides(INodeOptionsFactory)
-    def __init__(self, location, image, size, driver):
+    def __init__(self, location=None, image=None, size=None, auth=None, driver=None):
         self.location = location
         self.image = image
         self.size = size
+        self.auth = auth
         self.driver = driver
     def __repr__(self):
         return (('<NodeOptions: location=%s, image=%s, size=%s, driver=%s>')
                 % (self.location, self.image, self.size, self.driver.name))
 
+class NodeAuthSSHKey(object):
+    def __init__(self, pubkey):
+        self.pubkey = pubkey
+    def __repr__(self):
+        return '<NodeAuthSSHKey>'
+
+class NodeAuthPassword(object):
+    def __init__(self, password):
+        self.password = password
+    def __repr__(self):
+        return '<NodeAuthPassword>'
+
 class Response(object):
     """
     A Base Response class to derive from.



Mime
View raw message