Expose service catalog to interested parties.
Added ServiceCatalogerForIdentityV2 interface to allow interested
software access to the raw service catalog. Note that the interface
supported must necessarily expose the specific version of Openstack
Identity API version, as V2 and V3 are completely incompatible with each
other.
diff --git a/interfaces.go b/interfaces.go
index 4982937..e94f496 100644
--- a/interfaces.go
+++ b/interfaces.go
@@ -21,6 +21,13 @@
Reauthenticate() error
}
+// ServiceCatalogerIdentityV2 interface provides direct access to the service catalog as offered by the Identity V2 API.
+// We regret we need to fracture the namespace of what should otherwise be a simple concept; however,
+// the OpenStack community saw fit to render V3's service catalog completely incompatible with V2.
+type ServiceCatalogerForIdentityV2 interface {
+ V2ServiceCatalog() []CatalogEntry
+}
+
// CloudServersProvider instances encapsulate a Cloud Servers API, should one exist in the service catalog
// for your provider.
type CloudServersProvider interface {