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-12-11 15:08:19 +00:00
2020-12-11 15:08:19 +00:00
2020-12-11 15:08:19 +00:00
2020-11-26 11:53:08 +02: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-10-29 16:25:16 +01:00
2020-11-20 13:19:40 +02:00
2020-11-20 13:19:40 +02:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:14 +00:00
2020-11-27 12:20:55 +02:00
2020-11-27 12:20:55 +02:00
2020-11-20 13:19:40 +02:00
2020-12-09 17:39:04 +02:00
2020-12-04 16:54:13 +02:00
2020-12-04 13:15:37 +02:00
2020-12-11 12:10:30 +01:00
2020-12-04 13:15:37 +02:00
2020-10-29 16:25:16 +01:00
2020-11-30 10:28:03 +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-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:14 +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-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-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:14 +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-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-11-26 17:17:50 +02:00
2020-11-20 13:19:40 +02:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:14 +00:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-12-11 15:08:19 +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-11-30 11:39:55 +02:00
2020-11-02 21:32:55 +01:00
2020-12-11 16:34:14 +00:00
2020-12-11 16:34:14 +00:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-11-20 13:19:40 +02:00
2020-12-11 16:34:14 +00:00
2020-12-11 16:34:14 +00:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02:00
2020-11-20 13:19:40 +02:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02: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-12-11 16:34:14 +00:00
2020-12-11 16:34:14 +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-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-10-29 16:25:16 +01:00
2020-11-26 11:53:08 +02:00