Package com.woorea.openstack.keystone.model.Access

Examples of com.woorea.openstack.keystone.model.Access.Service


        ExamplesConfiguration.KEYSTONE_USERNAME,
        ExamplesConfiguration.KEYSTONE_PASSWORD);

    Access access = keystone.getAccessByTenant(ExamplesConfiguration.TENANT_NAME);

    Service glanceService = null;

    for (Service service : access.getServiceCatalog()) {
      if (service.getType().equals("image")) {
        glanceService = service;
        break;
      }
    }

    if (glanceService == null) {
      throw new RuntimeException("Glance service not found");
    }

    for (Endpoint endpoint : glanceService.getEndpoints()) {
      Glance glance = new Glance(endpoint.getPublicURL() + "/v1");
      glance.setTokenProvider(keystone
          .getProviderByTenant(ExamplesConfiguration.TENANT_NAME));

      // Creating a new image
View Full Code Here

TOP

Related Classes of com.woorea.openstack.keystone.model.Access.Service

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.