Crate anonymiser_lib

Source
Expand description

ยงCourt document package anonymiser library

This library contains common code shared between the anonymiser script and the lambda.

Structsยง

Opt
A struct representing the input arguments

Functionsยง

create_docx_with_checksum ๐Ÿ”’
Creates a docx and returns a checksum
decompress_file ๐Ÿ”’
Untar and unzip the input tar.gz file
files_in_input_dir
List files in input directory
if_present_delete ๐Ÿ”’
Helper function to delete a file if present
is_file ๐Ÿ”’
Helper function to check if the entry is a file
is_not_hidden ๐Ÿ”’
Helper function to check if a file does not start with .
parse_metadata_json ๐Ÿ”’
Read the metadata.json file and parse it into a serde Value
process_package
Package processor
tar_folder ๐Ÿ”’
Tars and Gzips the specified folder
update_json_file ๐Ÿ”’
Anonymise the contact fields and update the checksum