1
0
mirror of synced 2026-02-06 19:05:55 +00:00
Files
flux2/cmd/flux
Michael Bridgen 2bb09697ce Centralise adapter types
Since the generic commands tend to share a few of the methods they
need -- at least AsClientObject -- it's worth having just one wrapper
struct for each API type, and adding methods to it where necessary.

For the automation types, I put these in auto.go.

While doing this I also did some tidying:

 - I changed the name of the wrappers to `<type>Adapter`, and the
   generic adapter to `universalAdapter` (it's only needed for delete,
   so far).

 - I de-exported and renamed some interface methods e.g.,
   `exportItem`. They aren't needed outside the package.

Signed-off-by: Michael Bridgen <michael@weave.works>
2020-12-11 16:34:18 +00:00
..
2020-12-11 16:34:18 +00:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-12-04 16:54:13 +02:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-12-10 20:21:09 +01:00
2020-12-10 20:21:09 +01:00
2020-12-11 16:34:18 +00:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-11-26 16:40:54 +02:00
2020-10-29 16:25:16 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-26 16:22:47 +02:00
2020-10-29 16:25:16 +01:00