# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """SolidFire Plugin for Flocker.""" from solidfire_flocker_driver import solidfire_driver from flocker import node DRIVER_NAME = u"solidfire_flocker_driver" def api_factory(cluster_id, **kwargs): return solidfire_driver.initialize_driver(cluster_id, **kwargs) FLOCKER_BACKEND = node.BackendDescription( name=DRIVER_NAME, needs_reactor=False, needs_cluster_id=True, # My understanding is this is always True? api_factory=api_factory, deployer_type=node.DeployerType.block)
# a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """Dell Storage Center Plugin for Flocker.""" from dell_storagecenter_driver import dell_storagecenter_blockdevice from flocker import node DRIVER_NAME = u"dell_storagecenter_flocker_plugin" def api_factory(cluster_id, **kwargs): """Well known entry point for Flocker to load driver instance.""" kwargs['cluster_id'] = cluster_id return dell_storagecenter_blockdevice.create_driver_instance(**kwargs) FLOCKER_BACKEND = node.BackendDescription( # Name isn't actually used for 3rd party plugins name=DRIVER_NAME, needs_reactor=False, needs_cluster_id=True, api_factory=api_factory, deployer_type=node.DeployerType.block)
""" This is KAMINARIO-FLOCKER-DRIVER Module docstring """ from flocker import node from kaminario_flocker_driver.k2_blockdevice_api \ import instantiate_driver_instance from kaminario_flocker_driver.constants import DRIVER_NAME def api_factory(cluster_id, **kwargs): """Entry point for Flocker to load driver instance.""" kwargs['cluster_id'] = cluster_id return instantiate_driver_instance(**kwargs) FLOCKER_BACKEND = node.BackendDescription( name=DRIVER_NAME, needs_reactor=False, needs_cluster_id=True, api_factory=api_factory, deployer_type=node.DeployerType.block)
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from flocker import node from emc_unity_flocker_plugin import block_device_api DRIVER_NAME = u'emc_unity_flocker_plugin' def api_factory(cluster_id, **kwargs): return block_device_api.create_driver_instance(cluster_id, **kwargs) FLOCKER_BACKEND = node.BackendDescription( name=DRIVER_NAME, needs_reactor=False, needs_cluster_id=True, api_factory=api_factory, required_config={u"ip", u"user", u"password"}, deployer_type=node.DeployerType.block)