* Default to in-memory storage for the proxy
This makes it easier for someone to try out or just run the proxy by
executing the binary without further environment setup.
* Remove obsolete comment
* Added filter for private repos. Non private repos get redirected to
olympus
* Changed filter to allow private modules
* Changed config file name function
* Added filter tests
* The middleware returns 200 for privates, redirects public, 404 for
disabled repos
* Removed printf
* Removed forgotten printf
* Removed logger from the middleware func, not used anymore
* Removed unused (uncommented) function
* Replaced 404 with 403 in case of banned modules
* Fixed test path / cleaned olympus endpoint suffix
* Added error operation to GetVersion
* Moved filter test in custom file, reverted injection of the filter into
the app
* Removed white line
* Clarified comment for ignoring getversion error
* Added todo comment to fill the cache and serve the request with the
cache
* Added error handling to filter
* Removed commented early version of the test
* The commit brings more clarity on how to run unut tests.
The commit chages behaivour of `make test-unit` by adding sourcing of
env vars. Documentation is updated to provide more clarity on how to run
unit tests.
* changed list of commands to run before unit tests
* moved env vars to .env
* removed dduplicated env var
* returned conventional file name in script
* link to DEVELOPMENT.md
* fixed typo
* moved env var export to script
* removed export of tmp folder
* Goget fetcher should error out if gobinpath is not valid
* Propogating the error from goget initialisation to main, to stop application
* wrapping errors with op, using exec.command(gobin).Run to verify gobin, clean up
* Inlining afero fs to goget call, and new go getfetcher
* Revert "Inlining afero fs to goget call, and new go getfetcher"
This reverts commit ae31fe6a2b.
* Fixing example test
1. Gopath func doesnt seem to be used much; it is used in init func of proxy/actions/app.go which doesnt do much
2. I think relying on $GOPATH post go1.11 will lead to flaky situations
* add middlewares to fill the cache and to populate contexts with module and versions
* Carolyn tries to fix Aaron's code
* #DOINSTUFF
* updated env var
* fix all the things
* magic patch for olympus
* Add latest handler
* Remove deprecated return param
* go fmt all the things
* download: add list from go cli
* download: include goget tests + hacky hack
* download: move dummyMod to pkg/module
* Olympus: pass dp and lggr to /list
* download: add Version to interface
* download: document Protocol
* Athens: introduce pkg/errors
* errors: fix Ops loop
* pkg/errors: introduce M and V types to get rid of unstable parsing
* fix build
* errors: fix text + add tests
* pr updates
* remove spf13/cobra and inconshreveable/mousetrap
* remove user package
* remove user package
* remove unused types, vars etc
found by using github.com/dominikh/go-tools/tree/master/cmd/unused.running unused $(go list github.com/gomods/athens/... | grep -v /vendor/)
* rm uneeded file
* remove duplicate '/' handler declaration
* Remove homeHandler() and slow()
homeHandler is unused now and slow was a helper to add tracing with a
millisecond delay to the handler
* added test for notfound
* 🚨🔨
* hahaha
* test
* Olympus: default to PORT env var (#226)
* Olympus: default to PORT env var
* Athens: generalize env.Port function call
* Olympus: add PORT to .env
* test
* getset
'
* Docs
* separate package
* Adding context to storage.Saver parameters
* +`buffalo.Context` as first param in storage.Saver
Fixes#177
* Parallelizing Upload to Azure Blob Storage
Fixes#175
* Fixing import clausing
* go fmt ./...
* Populating default context
* CI: Echo files modified by gofmt check to stderr
Doing so allows users to see which files still need to be formatted.
* Upgrading Go, then go fmt ./...
* Addressing Feedback
* more responding to feedback
* Adding worker save Default Context
* Removing tracing, buffalo.Context usage in Storage interface
github.com/bketelsen/buffet relies on using a `buffalo.Context`
however, often a `storage.Saver` is invoked from a buffalo worker,
which has no buffalo.Context associated with it. Therefore, we had
two options: create a buffalo context for each worker's Job, or
remove the buffalo.Context dependency in the Saver interface.
* Fixing missed changes
* Review feedback
* basic structure
* added olympus endpoint for fetching log
* broken test
* added backing buffalo job
* slightly reshuffled, todo more shuffling
* reshuffle more
* breaking things up
* more breaking up
* hook to 101
* added redis to docker compose file
* working!
* a
* build fix
* first batch of changes towards new arch"
* first batch of comments resolved
* override for olympus endpoint
* styling
* osFs fix
* fixed in memory storage
* in-mem storage and test (#166)
* add rdbms support for cdn metadata storage
* move cdn metadata model to the metadata pkg
* simplify get
* add mongo saver and test
* remove 'stutters'
* change default table name
* missing cdn metadata pkg rename
* using the right DB names in the proxy database file
* using the right DB names in the olympus database file
and the right ports
* using the right DB name in the docker-compose
* adding mongo URL to the buffalo env file
* adding mongo URL to the proxy env file
* updating port for the proxy DB
* updating DB schemas for olympus and the proxy
* making the readme a little more up to date
* Making code generic between athens and olympus
* removing support in athens for "registry mode"
that is now olympus :)
* fixing compile err
* add a test target for the makefile
* Add .info to upload payload
everywhere else as well
+ Upload payload includes Info
+ CLI uploads `version.info` as blob to storage
+ Getter and Saver methods updated for all storages implemented
+ Migration updated to include Info column
+ Tests no longer check RevInfo, now checking for Info same as Zip
+ Updated docs
* newline in .fizz
* change RevInfo.Info to []byte
+ change to []byte instead of io.Reader
+ adjust tests to check for info byte contents directly
+ add error check for minio client GetObject `pkg/storage/minio/getter.go`