Crate workerlib

Source
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
MirrorStatus
Contains the status of a single mirror operation
PushRefs
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.