Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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