Support local apps.json loading #10

Merged
decentral1se merged 1 commits from apps-json-handling into main 2021-07-21 20:44:50 +00:00
Owner

This logic supports the following cases:

  • Download a fresh apps.json and load it if missing
  • Check if a local apps.json is old and get a fresh one if so
  • Always save a local copy after downloading a fresh apps.json

The http.Head() call is faster than a http.Get() call (only carries back respones headers) and aims to make the more general case more performant - you have the latest copy of the apps.json and don't need to download another one. This a direct port of our Bash implementation logic.

Closes #9.

This logic supports the following cases: - Download a fresh apps.json and load it if missing - Check if a local apps.json is old and get a fresh one if so - Always save a local copy after downloading a fresh apps.json The http.Head() call is faster than a http.Get() call (only carries back respones headers) and aims to make the more general case more performant - you have the latest copy of the apps.json and don't need to download another one. This a direct port of our Bash implementation logic. Closes https://git.autonomic.zone/coop-cloud/go-abra/issues/9.
decentral1se requested review from roxxers 2021-07-21 16:30:10 +00:00
decentral1se force-pushed apps-json-handling from 9c84438f0a to 1f6c0e8c4b 2021-07-21 20:43:07 +00:00 Compare
decentral1se changed title from WIP: support local apps.json loading to Support local apps.json loading 2021-07-21 20:43:15 +00:00
decentral1se removed review request for roxxers 2021-07-21 20:43:17 +00:00
decentral1se merged commit a4a8997f57 into main 2021-07-21 20:44:50 +00:00
decentral1se deleted branch apps-json-handling 2021-07-21 20:44:55 +00:00
Author
Owner

Took another run at this, gonna keep moving 🏃‍♀️

Took another run at this, gonna keep moving 🏃‍♀️
This repo is archived. You cannot comment on pull requests.
No description provided.