You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/12/30 14:33:59 UTC
[1/6] git commit: docs: Add information on how to instantiate a
HostVirtual driver.
Updated Branches:
refs/heads/trunk 369a16433 -> 662932e8e
docs: Add information on how to instantiate a HostVirtual driver.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b61e3118
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b61e3118
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b61e3118
Branch: refs/heads/trunk
Commit: b61e3118187798262262c537231eceeec7e2dcee
Parents: 369a164
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Dec 30 14:12:54 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Dec 30 14:12:54 2013 +0100
----------------------------------------------------------------------
docs/dns/drivers/hostvirtual.rst | 18 ++++++++++++++++++
docs/dns/drivers/index.rst | 10 ++++++++++
.../dns/hostvirtual/instantiate_driver.py | 5 +++++
3 files changed, 33 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/b61e3118/docs/dns/drivers/hostvirtual.rst
----------------------------------------------------------------------
diff --git a/docs/dns/drivers/hostvirtual.rst b/docs/dns/drivers/hostvirtual.rst
new file mode 100644
index 0000000..56e5e01
--- /dev/null
+++ b/docs/dns/drivers/hostvirtual.rst
@@ -0,0 +1,18 @@
+HostVirtual DNS Driver Documentation
+====================================
+
+`Host Virtual`_ is is a cloud hosting provider that operates dual-stack IPv4
+and IPv6 IaaS clouds in 15 locations worldwide.
+
+Instantiating a driver
+----------------------
+
+When you instantiate a driver, you need to pass a single ``key`` argument to
+the driver constructor. This argument represents your API secret key.
+
+For example:
+
+.. literalinclude:: /examples/dns/hostvirtual/instantiate_driver.py
+ :language: python
+
+.. _`Host Virtual`: https://www.hostvirtual.com/
http://git-wip-us.apache.org/repos/asf/libcloud/blob/b61e3118/docs/dns/drivers/index.rst
----------------------------------------------------------------------
diff --git a/docs/dns/drivers/index.rst b/docs/dns/drivers/index.rst
new file mode 100644
index 0000000..970cccb
--- /dev/null
+++ b/docs/dns/drivers/index.rst
@@ -0,0 +1,10 @@
+DNS Drivers Documentation
+=========================
+
+This chapter includes links to driver (provider) specific documentation pages.
+
+.. toctree::
+ :glob:
+ :maxdepth: 1
+
+ *
http://git-wip-us.apache.org/repos/asf/libcloud/blob/b61e3118/docs/examples/dns/hostvirtual/instantiate_driver.py
----------------------------------------------------------------------
diff --git a/docs/examples/dns/hostvirtual/instantiate_driver.py b/docs/examples/dns/hostvirtual/instantiate_driver.py
new file mode 100644
index 0000000..51aa0f7
--- /dev/null
+++ b/docs/examples/dns/hostvirtual/instantiate_driver.py
@@ -0,0 +1,5 @@
+from libcloud.dns.types import Provider
+from libcloud.dns.providers import get_driver
+
+cls = get_driver(Provider.HOSTVIRTUAL)
+driver = cls(key='my secret key')
[5/6] git commit: Update HostVirtual compute driver to use super and
take in all the supported arguments.
Posted by to...@apache.org.
Update HostVirtual compute driver to use super and take in all the supported
arguments.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/409f97dc
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/409f97dc
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/409f97dc
Branch: refs/heads/trunk
Commit: 409f97dcd10d9db92a6e8ccd7b4b4611b71cfbed
Parents: 29c0be7
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Dec 30 14:22:49 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Dec 30 14:22:49 2013 +0100
----------------------------------------------------------------------
libcloud/compute/drivers/hostvirtual.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/409f97dc/libcloud/compute/drivers/hostvirtual.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/hostvirtual.py b/libcloud/compute/drivers/hostvirtual.py
index e6b9141..a024273 100644
--- a/libcloud/compute/drivers/hostvirtual.py
+++ b/libcloud/compute/drivers/hostvirtual.py
@@ -64,9 +64,10 @@ class HostVirtualNodeDriver(NodeDriver):
connectionCls = HostVirtualComputeConnection
features = {'create_node': ['ssh_key', 'password']}
- def __init__(self, key):
+ def __init__(self, key, secure=True, host=None, port=None):
self.location = None
- NodeDriver.__init__(self, key)
+ super(HostVirtualNodeDriver, self).__init__(key=key, secure=secure,
+ host=host, port=port)
def _to_node(self, data):
state = NODE_STATE_MAP[data['status']]
[3/6] git commit: Add allow_insecure=True attribute to the
HostVirtual connection class.
Posted by to...@apache.org.
Add allow_insecure=True attribute to the HostVirtual connection class.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/de916067
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/de916067
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/de916067
Branch: refs/heads/trunk
Commit: de916067b3eeecc5d248a9095e7c9542b883741e
Parents: 78230d9
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Dec 30 14:17:39 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Dec 30 14:17:39 2013 +0100
----------------------------------------------------------------------
libcloud/common/hostvirtual.py | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/de916067/libcloud/common/hostvirtual.py
----------------------------------------------------------------------
diff --git a/libcloud/common/hostvirtual.py b/libcloud/common/hostvirtual.py
index 1c48308..f98f3a1 100644
--- a/libcloud/common/hostvirtual.py
+++ b/libcloud/common/hostvirtual.py
@@ -41,6 +41,8 @@ class HostVirtualException(LibcloudError):
class HostVirtualConnection(ConnectionKey):
host = API_HOST
+ allow_insecure = False
+
def add_default_params(self, params):
params['key'] = self.key
return params
[2/6] git commit: Re-generate documentation fixtures.
Posted by to...@apache.org.
Re-generate documentation fixtures.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/78230d9b
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/78230d9b
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/78230d9b
Branch: refs/heads/trunk
Commit: 78230d9b0a6da3172af1ed397efbb2a431f51ba4
Parents: b61e311
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Dec 30 14:14:17 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Dec 30 14:14:17 2013 +0100
----------------------------------------------------------------------
docs/dns/_supported_providers.rst | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/78230d9b/docs/dns/_supported_providers.rst
----------------------------------------------------------------------
diff --git a/docs/dns/_supported_providers.rst b/docs/dns/_supported_providers.rst
index 3f264f6..168e023 100644
--- a/docs/dns/_supported_providers.rst
+++ b/docs/dns/_supported_providers.rst
@@ -1,15 +1,15 @@
-===================== ============= ================= ======================================= =============================
-Provider Documentation Provider constant Module Class Name
-===================== ============= ================= ======================================= =============================
-`Gandi DNS`_ GANDI :mod:`libcloud.dns.drivers.gandi` :class:`GandiDNSDriver`
-`Host Virtual DNS`_ HOSTVIRTUAL :mod:`libcloud.dns.drivers.hostvirtual` :class:`HostVirtualDNSDriver`
-`Linode DNS`_ LINODE :mod:`libcloud.dns.drivers.linode` :class:`LinodeDNSDriver`
-`Rackspace DNS`_ RACKSPACE :mod:`libcloud.dns.drivers.rackspace` :class:`RackspaceDNSDriver`
-`Rackspace DNS (UK)`_ RACKSPACE_UK :mod:`libcloud.dns.drivers.rackspace` :class:`RackspaceUKDNSDriver`
-`Rackspace DNS (US)`_ RACKSPACE_US :mod:`libcloud.dns.drivers.rackspace` :class:`RackspaceUSDNSDriver`
-`Route53 DNS`_ ROUTE53 :mod:`libcloud.dns.drivers.route53` :class:`Route53DNSDriver`
-`Zerigo DNS`_ ZERIGO :mod:`libcloud.dns.drivers.zerigo` :class:`ZerigoDNSDriver`
-===================== ============= ================= ======================================= =============================
+===================== ======================================= ================= ======================================= =============================
+Provider Documentation Provider constant Module Class Name
+===================== ======================================= ================= ======================================= =============================
+`Gandi DNS`_ GANDI :mod:`libcloud.dns.drivers.gandi` :class:`GandiDNSDriver`
+`Host Virtual DNS`_ :doc:`Click </dns/drivers/hostvirtual>` HOSTVIRTUAL :mod:`libcloud.dns.drivers.hostvirtual` :class:`HostVirtualDNSDriver`
+`Linode DNS`_ LINODE :mod:`libcloud.dns.drivers.linode` :class:`LinodeDNSDriver`
+`Rackspace DNS`_ RACKSPACE :mod:`libcloud.dns.drivers.rackspace` :class:`RackspaceDNSDriver`
+`Rackspace DNS (UK)`_ RACKSPACE_UK :mod:`libcloud.dns.drivers.rackspace` :class:`RackspaceUKDNSDriver`
+`Rackspace DNS (US)`_ RACKSPACE_US :mod:`libcloud.dns.drivers.rackspace` :class:`RackspaceUSDNSDriver`
+`Route53 DNS`_ ROUTE53 :mod:`libcloud.dns.drivers.route53` :class:`Route53DNSDriver`
+`Zerigo DNS`_ ZERIGO :mod:`libcloud.dns.drivers.zerigo` :class:`ZerigoDNSDriver`
+===================== ======================================= ================= ======================================= =============================
.. _`Gandi DNS`: http://www.gandi.net/domain
.. _`Host Virtual DNS`: http://www.vr.org/
[4/6] git commit: Update docstrings.
Posted by to...@apache.org.
Update docstrings.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/29c0be79
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/29c0be79
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/29c0be79
Branch: refs/heads/trunk
Commit: 29c0be79c938cb6ac1f97c517a159ac56f9ffdab
Parents: de91606
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Dec 30 14:20:26 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Dec 30 14:20:26 2013 +0100
----------------------------------------------------------------------
libcloud/common/base.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/29c0be79/libcloud/common/base.py
----------------------------------------------------------------------
diff --git a/libcloud/common/base.py b/libcloud/common/base.py
index 13e7baf..1639958 100644
--- a/libcloud/common/base.py
+++ b/libcloud/common/base.py
@@ -861,7 +861,7 @@ class PollingConnection(Connection):
class ConnectionKey(Connection):
"""
- A Base Connection class to derive from, which includes a
+ Base connection class which accepts a single ``key`` argument.
"""
def __init__(self, key, secure=True, host=None, port=None, url=None,
timeout=None):
@@ -877,7 +877,7 @@ class ConnectionKey(Connection):
class ConnectionUserAndKey(ConnectionKey):
"""
- Base connection which accepts a user_id and key.
+ Base connection class which accepts a ``user_id`` and ``key`` argument.
"""
user_id = None
[6/6] git commit: Update HostVirtual DNS driver constructor to only
take in "key" and other supported arguments. Previously it also took "secret"
which it silently ignored.
Posted by to...@apache.org.
Update HostVirtual DNS driver constructor to only take in "key" and other
supported arguments. Previously it also took "secret" which it silently
ignored.
Part of LIBCLOUD-483.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/662932e8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/662932e8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/662932e8
Branch: refs/heads/trunk
Commit: 662932e8eb3f92312a9a83ca1dfae8f6aabddc9c
Parents: 409f97d
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Dec 30 14:23:19 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Dec 30 14:25:20 2013 +0100
----------------------------------------------------------------------
libcloud/dns/drivers/hostvirtual.py | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/662932e8/libcloud/dns/drivers/hostvirtual.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/hostvirtual.py b/libcloud/dns/drivers/hostvirtual.py
index c0ac57a..94da737 100644
--- a/libcloud/dns/drivers/hostvirtual.py
+++ b/libcloud/dns/drivers/hostvirtual.py
@@ -70,6 +70,10 @@ class HostVirtualDNSDriver(DNSDriver):
RecordType.SRV: 'SRV',
}
+ def __init__(self, key, secure=True, host=None, port=None):
+ super(HostVirtualDNSDriver, self).__init__(key=key, secure=secure,
+ host=host, port=port)
+
def _to_zones(self, items):
zones = []
for item in items: