Expand description
This is the workerlib crate
Re-exports§
pub use lorry_specs::extract_lorry_specs;
pub use lorry_specs::LorrySpec;
Modules§
- execute
- Execute internal commands (tokio::process::Command) (e.g.
git reset --hard
) - fetch
- Fetch git sources into a workspace
- git_
config - Configure the global settings of all git-binary based operations.
- git_
fsck - Git Fsck
- git_gc
- Git binary for git cleanup operations
- local
- Initialize a local repository
- lorry_
specs - Representation of
.lorry
specification files - redact
- Helper utility that can redact sensitive strings common in Lorry
- workspace
- Wrapper for running low level git commands and initializing the underlying mirror cache directory on a per-mirror basis
Structs§
- Arguments
- Options specifying how to carry out the mirroring operations
- Mirror
Status - Contains the status of a single mirror operation
- Push
Refs - Results of a parsing refs from porcelain git push output
Enums§
- Error
- Top-level error type containing all possible errors during a mirroring operation.
- Warning
- Non-fatal error encountered when running a Lorry.
Constants§
- DEFAULT_
BRANCH_ NAME - Default branch if HEAD is missing or unresolvable from the target repository.
- DEFAULT_
REF_ NAME - Default ref is missing from the target repository.
- LORRY_
VERSION_ HEADER - Extra header exposed on Git fetch uperations to upstream servers and push operations on downstream.
Functions§
- try_
mirror - Attempt to mirror a repository from an upstream host into the configured downstream server.