use of org.platformlayer.ops.machines.StorageConfiguration in project platformlayer by platformlayer.
the class OpenstackBackupContextFactory method build.
@Override
public OpenstackBackupContext build(ItemBase item) throws OpsException {
Machine machine = instances.findMachine(item);
if (machine == null) {
throw new OpsException("Cannot determine machine for: " + item);
}
StorageConfiguration storageConfiguration = cloud.getStorageConfiguration(machine);
return build(storageConfiguration);
}
use of org.platformlayer.ops.machines.StorageConfiguration in project platformlayer by platformlayer.
the class OpenstackCloudController method getStorageConfiguration.
@Override
public StorageConfiguration getStorageConfiguration() throws OpsException {
String authUrl = model.endpoint;
OpenstackCredentials credentials = new OpenstackCredentials(authUrl, model.username, model.password.plaintext(), model.tenant);
StorageConfiguration config = new OpenstackStorageConfiguration(credentials);
return config;
}
Aggregations