Commit Graph

313 Commits

Author SHA1 Message Date
decentral1se 1442c71911
docs: mark that one as not in progress 2021-07-31 15:50:50 +02:00
decentral1se e4c864a60c
docs: mark that one as done 2021-07-31 15:50:23 +02:00
decentral1se 42968fb8e1
feat: finally implement app new command 2021-07-31 15:50:04 +02:00
decentral1se 932803453e
WIP: still hacking on the app new command
Finally had to fork godotenv because it strips comments and we need
those to parse length values (e.g. "FOO=v1  # length=10") (or in other
words, motivation to move to the YAML format).

There is a new secret module now, with functionality for dealing with
generation and parsing of secrets.

The final output needs some work and there is also the final step of
implementing the sending of secrets to the docker daemon. Coming Soon
™️.
2021-07-31 12:49:22 +02:00
decentral1se 5771f6c158
WIP another pass on the app new command 2021-07-30 22:55:00 +02:00
decentral1se e728bcd7ac
docs: CLI flag docs and rewording of usage 2021-07-30 22:54:30 +02:00
decentral1se 769c5b899b
refactor: abstract secret generation into package 2021-07-30 22:53:51 +02:00
decentral1se f56ddef6c8
WIP: another step further into app new command 2021-07-30 20:14:17 +02:00
Roxie Gibson ac6b8ab147
chore(deps): upgrade containerd 1.5.3 -> 1.5.5 2021-07-30 16:34:06 +01:00
Roxie Gibson a581049cf1
refactor: simplify for loop 2021-07-30 16:32:06 +01:00
decentral1se 58bdb456df
refactor: use variable to make more readable 2021-07-30 17:09:23 +02:00
decentral1se d97da9f45c
fix: use correct path for checking app path 2021-07-30 17:07:51 +02:00
decentral1se 064a0f271f
WIP: further process on app new command 2021-07-30 13:16:28 +02:00
decentral1se 6c36e77722
docs: add 3rd party integration TODOs 2021-07-29 12:32:16 +02:00
decentral1se d422902e09
WIP: spec out first steps for app new command 2021-07-29 12:26:11 +02:00
decentral1se e4ed2aeebf
docs: better wording 2021-07-28 22:13:05 +02:00
decentral1se f7b085dfa2
feat: add abra dir creation function 2021-07-28 22:10:42 +02:00
decentral1se 1187d6bfd5
refactor: move catalogue logic into own package 2021-07-28 22:10:13 +02:00
decentral1se bf0212c520
docs: more flag aliases (for app new command) 2021-07-28 14:27:23 +02:00
decentral1se de3ea8188e
WIP spec out app new command 2021-07-28 14:26:37 +02:00
decentral1se bf7d437571
docs: more CLI documentation 2021-07-28 13:56:18 +02:00
decentral1se 1ee572363a
chore: mark command as in-progress 2021-07-28 11:30:30 +02:00
decentral1se 2c1b8ee7e2
docs: document flags for app new command 2021-07-28 11:30:14 +02:00
decentral1se 622e0127ea
docs: fill out app listing CLI docs 2021-07-28 11:29:59 +02:00
decentral1se d581d3313a
docs: add missing command and drop prefix 2021-07-27 21:40:09 +02:00
decentral1se 0e75350985
feat: prototype for app listing 2021-07-27 21:25:08 +02:00
decentral1se cf7a8d114a
chore: remove unused prototype code 2021-07-27 19:46:01 +02:00
decentral1se ef1591d596
WIP: app status listing using concurrency
This being my first time using goroutines, it is pretty messy but the
idea has been shown to be workable! We can concurrently look up multiple
contexts for a much faster response time especially when using multiple
servers.

Remaining TODOs are:

- [ ] Get proper status reporting (deployed/inactive/unknown)
- [ ] Error handling (especially when missing contexts)
- [ ] Refactor and tidy
2021-07-27 12:52:09 +02:00
decentral1se 429c7e4e50
docs: take a pass on CLI usage docs and add ASCII 2021-07-26 23:58:34 +02:00
decentral1se 3bc612c44e
WIP: status lookup for apps listing 2021-07-26 20:59:17 +02:00
decentral1se 2c83113040
docs: add shorthand and usage docs for app ls flags 2021-07-26 19:59:50 +02:00
decentral1se fae5a87ce2
fix: respect --type/-t logic for app listing
Reverts c27376c89b. Woops.
2021-07-26 19:59:26 +02:00
decentral1se 145e6326c9
fix: use domain to follow original abra app ls 2021-07-26 19:49:51 +02:00
decentral1se 5def18a9af
fix: sort by server and type for app listing 2021-07-26 19:47:44 +02:00
decentral1se 8656ae947a
tests: fix App def to match new struct format
Follows from 01cbee824a.
2021-07-26 19:22:26 +02:00
decentral1se c27376c89b
fix: disable merging and rely on type being present 2021-07-26 19:16:38 +02:00
decentral1se 01cbee824a
WIP: app list command sorting 2021-07-26 18:23:28 +02:00
decentral1se 337d3e9ae1
refactor: more conventional name for method 2021-07-26 17:50:40 +02:00
decentral1se 60a70d2d83
refactor(recipe): better naming, sorting and types
In order to arrange various types of sorting for the app catalogue, it
seems like the recommended approach is to maintain a separate data
structure alongside the JSON map we get from apps.coopcloud.tech.

Therefore, I attempt to provide a ToList() method and accompanying
sort.Sort interface sorting implementations. For now, this is just
sorting by app name.

I am testing this type of implementation here before moving on to
arrange different types of sorting for the `app list` command.
2021-07-26 17:25:08 +02:00
decentral1se 1f62ace524
refactor: use method to sort recipe apps listing 2021-07-26 15:43:35 +02:00
decentral1se 13028db287
chore: go mod tidy for new deps (go-git) 2021-07-26 15:38:33 +02:00
decentral1se 1f550c2470
feat: finish recipe create command 2021-07-25 19:28:29 +02:00
decentral1se 359b07b562
WIP: recipe create 2021-07-25 00:07:35 +02:00
decentral1se 45c3bce7ff
fix: return if erroring out 2021-07-24 23:30:42 +02:00
decentral1se 6eee02d90a
feat: add recipe versions command 2021-07-24 23:18:23 +02:00
Roxie Gibson dfc91a86a1
feat: WIP server rm command 2021-07-22 17:38:44 +01:00
Roxie Gibson dd86ec4ca8
refactor: client pkg with new context interaction 2021-07-22 15:31:43 +01:00
decentral1se fce1ab6c02
refactor: better naming for loop scoped variables 2021-07-22 14:53:08 +02:00
decentral1se 381de28e83
refactor: make ReadApps main API entrypoint
This allows AppsReadFS/AppsReadWeb to be used behind the scenes of this
API for the conditional loading logic. All functions are left as public
for now while we're experimenting.
2021-07-22 14:51:56 +02:00
decentral1se 56cec1580a
refactor: use app-less naming for this struct also 2021-07-22 14:25:37 +02:00