Upload Module¶
The upload module used to send the data to ingest.
-
pacifica.cli.upload.build_file_list_from_args(file_list, followlinks)[source]¶ Build a file list from args passed on cmdline.
-
pacifica.cli.upload.determine_sizes(md_update, args)[source]¶ Return the sizes of the tar, tar_in_tar and overall content length.
-
pacifica.cli.upload.fake_uploader(rfd, content_length)[source]¶ Fake the upload by reading all the content then returning.
-
pacifica.cli.upload.generate_names_from_dir(dirpath, followlinks)[source]¶ Generate a file list from a dirpath.
-
pacifica.cli.upload.get_size_of_tar(md_update, args)[source]¶ Get the size of the tar file, no tarintar.
-
pacifica.cli.upload.get_size_of_tar_in_tar(md_update, args, tar_size)[source]¶ Return the content-length for the upload.
-
pacifica.cli.upload.invoke_uploader(md_update, rfd, content_length)[source]¶ Invoke the uploader code to actually upload.
-
pacifica.cli.upload.perform_upload(md_update, args, content_length, tar_size)[source]¶ Setup threads and perform the upload.
-
pacifica.cli.upload.save_local(rfd, wfd, save_filename, compressor)[source]¶ Save the bytes from rfd to args.savelocal and wfd.
-
pacifica.cli.upload.setup_bundler(wfd, md_update, args, wthreads)[source]¶ Setup the bundler or local retry if passed.
-
pacifica.cli.upload.setup_chain_thread(pipes, args, func, wthreads, doit)[source]¶ Setup a local thread if we doit using func.
-
pacifica.cli.upload.tar_in_tar(rfd, wfd, md_update, bundle_size)[source]¶ Generate another bundler and wrap rfd in that tar.