package
3.82.6
Repository: https://github.com/trufflesecurity/trufflehog.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CloneRepo orchestrates the cloning of a given Git repository, returning its local path and a git.Repository object for further operations.
CloneRepoUsingSSH clones a repo using SSH.
CloneRepoUsingToken clones a repo using a provided token.
CloneRepoUsingUnauthenticated clones a repo with no authentication required.
CmdCheck checks if git is installed and meets 2.20.0<=x<3.0.0 version requirements.
No description provided by the author
NewGit creates a new Git instance with the provided configuration.
No description provided by the author
PingRepoUsingToken executes git ls-remote on a repo and returns any error that occurs.
PrepareRepo clones a repo if possible and returns the cloned repo path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TryAdditionalBaseRefs looks for additional possible base refs for a repo and returns a hash if found.
Helper function to unmarshal raw bytes into our SourceUnit struct.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Config for a Git source.
No description provided by the author
No description provided by the author
No description provided by the author
A git source unit can be two kinds of units: either a local directory path or a remote repository.

# Type aliases

No description provided by the author