Adding the Mirror_URL option

Review Request #9305 - Created Oct. 22, 2017 and updated

Henri-Philippe Marceau
rb-gateway
master
a6fdde5...
rb-gateway, students

A Mirror string field was added to Repository Info and a GetMirror
method was implemented in git_repository.go. LoadConfig was modified
to handle the new mirror option, and a getMirror function was added to
routes.go.

httpie was used to send a getMirror API request to an rb-gateway
server. The plain text stored in Mirror was obtained if it was defined,
otherwise a "Mirror not defined" message is obtained.

Henri-Philippe Marceau
Henri-Philippe Marceau
Henri-Philippe Marceau
Review request changed

Summary:

-[WIP] Adding the Mirror_URL option
+Adding the Mirror_URL option

Description:

~  

Added Mirror string to Repository Info and a GetMirror signature to

~   repositroy.go.
~   Implemented GetMirror in git_repository.go.
~   I also modified LoadConfig to handle the new mirror option and added a
  ~

A Mirror string field was added to Repository Info and a GetMirror

  ~ method was implemented in git_repository.go. LoadConfig was modified
  ~ to handle the new mirror option, and a getMirror function was added to
  ~ routes.go.

-   getMirror function to routes.go. getMirror works, I was able to define
-   a mirror in config.json and retrieve it.

Testing Done:

  +

httpie was used to send a getMirror API request to an rb-gateway

  + server. The plain text stored in Mirror was obtained if it was defined,
  + otherwise a "Mirror not defined" message is obtained.

Loading...