repo-cloner

command module
v0.0.0-...-c8e7285 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 7 Imported by: 0

README

User Repo Cloner

This module is responsible for automatically cloning the internal and external repositories of the projects in which the user participates. This way they are available for code-server to be able to work with it.

To do this, it checks periodically the projects collection in the database, to locate the ones that the user is included in. So, those who do not have a folder with the code, try to clone the repository. For this it is necessary that the user's public key is included in the platform where the repository is stored (github, gitlab, gitea etc), so that cloning through ssh is possible.

Configuration

Environment variable Description
KDL_USER_NAME (required) username from which the repositories are to be cloned.
LOG_LEVEL (optional) log verbosity level. Possibilities: debug, info, warn, error.
INTERNAL_REPO_BASE_URL (optional) base url to access internal gitea repositories.
REPOS_PATH (optional) absolute path to store the cloned repositories.
PEM_FILE (optional) absolute path to user private ssh key.
PEM_FILE_PASSWORD (optional) password for user private ssh key.
CHECK_FREQUENCY_SECONDS (optional) frequency of checking new repositories (seconds)
KDL_SERVER_MONGODB_URI (optional) mongoDB URI.
DB_NAME (optional) KDL database name.
PROJECT_COLL_NAME (optional) projects collection name.
USER_COLL_NAME (optional) user collection name.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL