Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stuttgart-things/sweatshop-fetcher

git repository cloning service
https://github.com/stuttgart-things/sweatshop-fetcher

git golang grpc kubernetes

Last synced: 2 days ago
JSON representation

git repository cloning service

Awesome Lists containing this project

README

        

# stuttgart-things/sweatShop-fetcher

sweatShop-fetcher is a gRPC server, which hosts a repository service.

This service takes in a git repository url, credentials and delivers a list of files, fitting the given pattern.
During the initialization of the repository service, existing repositories in the system tmp dir are scanned and save into a repo list.

When a request to list files of a certain pattern in a repository comes in, the repository service first clone the repository into the system tmp dir, if the repository is not cloned yet. Then the service gathers files fitting the pattern and deliver a file list as output.

## TESTS

```
go run tests/list-files.go
go run tests/repo-connection.go
```

## LICENSE

APACHE 2.0

Copyright 2023 Xiaomin Lai.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Author Information
------------------
```bash
Xiaomin Lai, stuttgart-things 01/2023
Patrick Hermann, stuttgart-things 08/2023 (Moved -> github)
```