You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Adphi 17e0d2d4bf fix modules sub path 2 years ago
deploy use viper to handle config 3 years ago
screenshots add screenshots, improved README.md 3 years ago
.gitignore resolve symlink 3 years ago
Dockerfile Dockerfile nobody user 3 years ago
LICENSE add license 3 years ago
README.md add screenshots, improved README.md 3 years ago
config.example.yml add example deployment 3 years ago
go.mod fix modules sub path 2 years ago
go.sum fix modules sub path 2 years ago
handler.go fix modules sub path 2 years ago
index.go config file + watcher 3 years ago
main.go fix config reloading 3 years ago
module.go fix modules sub path 2 years ago
package.go config file + watcher 3 years ago
templates.go config file + watcher 3 years ago

README.md

go-repo

go-repo is a simple golang repository hosting web app, heavily inspired by go.uber.org.

It allows hosting go modules with custom import names.

Example :

$ go get go.adphi.net/go-repo

instead of

$ go get git.adphi.net/adphi/go-repo

Installation

$ docker pull adphi/go-repo

Deployment

An example Kubernetes deployment is available in the deploy directory.

Usage

$ go-repo

Usage:
  go-repo [config] [flags]

Examples:
go-repo config.yml

Flags:
  -a, --address string      The server address (default ":8888")
  -h, --help                help for go-repo
      --logs-level string    (default "info")

An example config file:

modules:
- import: go.adphi.net/go-repo
  repository: git.adphi.net/adphi/go-repo
  readme: git.adphi.net/adphi/go-repo/raw/master/README.md

The config file is reloaded on changes

Run the app:

$ go-repo config.yml

Screenshots

The origin display the available packages index index

The details page display the README.md from configuration details