agola/internal/services/runservice/api
Simone Gotti f812597410 runservice: maintenance/export/import
Implement runservice maintenance mode and export/import.

When runservice is set in maintenance mode it'll start only the maintenance and
export/import handlers.

Setting maintenance mode will set a key in etcd so all the runservice instances
will detect it and enter in maintenance mode. This is done asyncronously so it
could take some time (future improvements will add some api to show all the
runservice states)

Export is always available and will export the datamanager contents. Currently
only datamanager contents are exported (no logs and workspace archives).

Import is available only during maintenance, given a datamanager export will
import it and reset etcd to this import state.
2019-07-29 11:52:30 +02:00
..
api.go db: use context functions 2019-07-25 14:49:53 +02:00
client.go runservice: add getruns filter by result 2019-07-05 10:32:51 +02:00
executor.go runservice: fix linter errors 2019-07-02 14:53:01 +02:00
maintenance.go runservice: maintenance/export/import 2019-07-29 11:52:30 +02:00