ingest.strike.configuration.json package

Submodules

ingest.strike.configuration.json.configuration_v6 module

Manages the v6 batch configuration schema

class ingest.strike.configuration.json.configuration_v6.StrikeConfigurationV6(configuration, do_validate=False)

Bases: object

Represents the configuration for a running Strike instance. The configuration includes details about mounting the transfer NFS directory, the suffix for identifying files still being transferred, and regular expressions to identify files to ingest and how to store them.

get_configuration()

Returns the strike configuration represented by this JSON

Returns:The strike configuration
Return type:ingest.strike.configuration.strike_configuration.StrikeConfiguration:
get_dict()

Returns the internal dictionary that represents this Strike process configuration.

Returns:The internal dictionary
Return type:dict
sanitize_credentials()

Sanitizes the aws credentials in the config if they exist

ingest.strike.configuration.json.configuration_v6.convert_strike_config_to_v6_json(config, sanitize=True)

Returns the v6 strike configuration JSON for the given configuration

Parameters:
Returns:

The v6 scan configuration JSON

Return type:

ingest.strike.configuration.json.configuration_v6.StrikeConfigurationV6

Module contents