コード例 #1
0
ファイル: host_broker.py プロジェクト: michaeljohns2/scale
    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
コード例 #2
0
ファイル: host_broker.py プロジェクト: AppliedIS/scale
    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
コード例 #3
0
ファイル: s3_broker.py プロジェクト: droessne/scale
    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
コード例 #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
コード例 #5
0
ファイル: s3_broker.py プロジェクト: ngageoint/scale
    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
コード例 #6
0
ファイル: s3_broker.py プロジェクト: wong-j/scale
    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
コード例 #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(':', ''))
コード例 #8
0
ファイル: nfs_broker.py プロジェクト: sau29/scale
    def load_configuration(self, config):
        """See :meth:`storage.brokers.broker.Broker.load_configuration`
        """

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