summaryrefslogtreecommitdiff
path: root/server/core/LibOverride/OpenStack.php
diff options
context:
space:
mode:
authorEole <EoleDev@outlook.fr>2016-01-30 11:41:45 +0100
committerEole <EoleDev@outlook.fr>2016-01-30 11:41:45 +0100
commit78e6e5787ce2df4ae55f5b4d64c792b8f20696d7 (patch)
tree94b2293391e70350d7ebbaa99979d1dd7f292399 /server/core/LibOverride/OpenStack.php
parentba8bbc77fb302f95b2e508d1ff1203f451311bf4 (diff)
Begin of Identity Implementation, Begin of Token management for Identification
Diffstat (limited to 'server/core/LibOverride/OpenStack.php')
-rw-r--r--server/core/LibOverride/OpenStack.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/server/core/LibOverride/OpenStack.php b/server/core/LibOverride/OpenStack.php
new file mode 100644
index 0000000..2b3897a
--- /dev/null
+++ b/server/core/LibOverride/OpenStack.php
@@ -0,0 +1,43 @@
+<?php
+namespace OpenStack;
+
+#use OpenStack\Common\Service\Builder;
+use OpenStack\Common\Service\Builder_override;
+/**
+ * This class is the primary entry point for working with the SDK. It allows for the easy creation
+ * of OpenStack services.
+ *
+ * @package OpenStack
+ */
+class OpenStack_override extends OpenStack
+{
+ /**
+ * @param array $options User-defined options
+ *
+ * $options['username'] = (string) Your OpenStack username [REQUIRED]
+ * ['password'] = (string) Your OpenStack password [REQUIRED]
+ * ['tenantId'] = (string) Your tenant ID [REQUIRED if tenantName omitted]
+ * ['tenantName'] = (string) Your tenant name [REQUIRED if tenantId omitted]
+ * ['authUrl'] = (string) The Keystone URL [REQUIRED]
+ * ['debug'] = (bool) Whether to enable HTTP logging [OPTIONAL]
+ */
+ public function __construct(array $options = [], Builder $builder = null)
+ {
+ $this->builder = $builder ?: new Builder_override($options);
+ parent::__construct($options, $this->builder);
+ }
+
+ public function getBuilderOptions()
+ {
+
+ return $this->builder->getOptions();
+
+ }
+
+ public function setBuilderOptions($options)
+ {
+
+ $this->builder->setOptions($options);
+
+ }
+}