pub struct Arguments {
pub working_area: PathBuf,
pub check_ssl_certificates: bool,
pub maximum_redirects: u32,
pub use_git_binary: Option<bool>,
pub pack_threads: Option<usize>,
pub git_config_path: PathBuf,
pub sha256sum_required: bool,
}
Expand description
Options specifying how to carry out the mirroring operations
Fields§
§working_area: PathBuf
Directory for holding intermediate git repos and other internal data
check_ssl_certificates: bool
Validate SSL/TLS server certifications.
maximum_redirects: u32
The maximum number of redirections that should be followed by the client
use_git_binary: Option<bool>
If the git binary should be preferred or if libgit2 should be used. Libgit2 has stronger security properties guarantee while the git binary has better performance. Note that raw-file mirrors only use the git binary due to git’s integration with git-lfs.
pack_threads: Option<usize>
number of threads to use for cloning, this setting only effects the operation when using the git binary
git_config_path: PathBuf
Path to the global git configuration for use with git commands, must already be configured.
sha256sum_required: bool
If sha256sums are required for all raw files. NOTE: This will default to true in a future release.