Example #1
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`
        """

        volume = BrokerVolume(None, config['host_path'])
        volume.host = True
        self._volume = volume
Example #2
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`
        """

        volume = BrokerVolume(None, config['host_path'])
        volume.host = True
        self._volume = volume
Example #3
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`"""

        self._bucket_name = config['bucket_name']
        self._region_name = config.get('region_name')

        # TODO Change credentials to use an encrypted store key reference
        self._credentials = AWSClient.instantiate_credentials_from_config(config)

        if 'host_path' in config:
            volume = BrokerVolume(None, config['host_path'])
            volume.host = True
            self._volume = volume
Example #4
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`"""

        self._bucket_name = config['bucket_name']
        self._region_name = config.get('region_name')

        # TODO Change credentials to use an encrypted store key reference
        self._credentials = AWSClient.instantiate_credentials_from_config(config)

        # Ensure empty or white-space filled host_paths do not cause mounts to be applied
        if 'host_path' in config and len(config['host_path'].strip()):
            volume = BrokerVolume(None, config['host_path'])
            volume.host = True
            self._volume = volume
Example #5
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`"""

        self._bucket_name = config['bucket_name']
        self._region_name = config.get('region_name')

        # TODO Change credentials to use an encrypted store key reference
        self._credentials = AWSClient.instantiate_credentials_from_config(config)

        # Ensure empty or white-space filled host_paths do not cause mounts to be applied
        if 'host_path' in config and len(config['host_path'].strip()):
            volume = BrokerVolume(None, config['host_path'])
            volume.host = True
            self._volume = volume
Example #6
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`"""

        self._bucket_name = config['bucket_name']
        self._region_name = config.get('region_name')

        # TODO Change credentials to use an encrypted store key reference
        self._credentials = AWSClient.instantiate_credentials_from_config(
            config)

        if 'host_path' in config:
            volume = BrokerVolume(None, config['host_path'])
            volume.host = True
            self._volume = volume
Example #7
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`
        """

        # The docker-volume-netshare plugin requires the : separator between the NFS host and path to be removed
        self._volume = BrokerVolume('nfs', config['nfs_path'].replace(':', ''))
Example #8
0
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`
        """

        self._volume = BrokerVolume('nfs', config['nfs_path'])