go-repo

command module
v0.0.0-...-17e0d2d Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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