zrepl/cmd
Christian Schwarz 2c87b15e83 daemon: Task abstraction + TaskStatus
An instance of Task tracks a single thread of activity that is part of a Job.

While the docs already use this terminology of tasks being composed of jobs,
the code did not have an object to represent these semantics.
Now it does:

* A task t is initialized with a root activity, which is its name
* t can t.Enter() and t.Finish() an activity, building
  a stack of activities
* t's code can get a logger t.Log() whose logTaskField is set to the
  concatenated stack of activities
* t's code can update IO progress it made since leaving idle state
* t's code's log output vie t.Log() is captured since leaving idle
  state
  * FIXME: find a way to bound that buffer

refs #10
refs #48
2017-12-27 14:39:46 +01:00
..
sampleconf cmd/sampleconf/zrep.yml: remove it, it's from the stone ages 2017-10-05 21:48:18 +02:00
autosnap.go bookmark every snapshot 2017-11-13 10:59:46 +01:00
bashcomp.go bash completions: hidden subcommand + integrate into Makefile 2017-12-27 14:39:46 +01:00
config_connect.go config: unify job debugging options 2017-09-11 15:45:10 +02:00
config_fsvfilter.go refactor: parametrize PrefixFilter VersionType check 2017-11-13 10:59:22 +01:00
config_job_control.go refactor: encapsulate pulling in a struct 2017-12-24 15:23:28 +01:00
config_job_local.go refactor: encapsulate pulling in a struct 2017-12-24 15:23:28 +01:00
config_job_pull.go refactor: encapsulate pulling in a struct 2017-12-24 15:23:28 +01:00
config_job_source.go refactor: parametrize PrefixFilter VersionType check 2017-11-13 10:59:22 +01:00
config_logging.go logger: support forking of outlets 2017-12-27 13:50:07 +01:00
config_mapfilter.go mappings: fix aliasing bug with '<' wildcards 2017-10-05 20:10:05 +02:00
config_parse.go config: support days (d) and weeks (w) in durations 2017-10-05 15:17:37 +02:00
config_prune_grid.go retention grid: interva length monotonicity: exception for keep=all 2017-10-05 20:34:35 +02:00
config_prune_none.go cmd: noprune prune policy 2017-09-15 19:32:09 +02:00
config_serve_stdinserver.go cmd: extract listening on a UNIX socket in a private directory into a helper func 2017-09-17 23:41:51 +02:00
config_test.go mappings: fix aliasing bug with '<' wildcards 2017-10-05 20:10:05 +02:00
config.go cmd: logging using logrus 2017-09-22 17:01:54 +02:00
control.go 'zrepl version' and 'zrepl control version' subcommand + maintainer README 2017-11-18 21:12:48 +01:00
daemon.go daemon: Task abstraction + TaskStatus 2017-12-27 14:39:46 +01:00
handler.go cmd: logging using logrus 2017-09-22 17:01:54 +02:00
helpers.go fix unreachable code & missing stringer-generated code 2017-09-30 16:31:55 +02:00
logging_formatters.go logging: support ignoring fields in HumanFormatter 2017-12-27 14:39:46 +01:00
logging_outlets.go tcp outlet: fix error handling on write failure 2017-09-30 16:38:48 +02:00
main.go 'zrepl version' and 'zrepl control version' subcommand + maintainer README 2017-11-18 21:12:48 +01:00
prune.go bookmark every snapshot 2017-11-13 10:59:46 +01:00
replication.go refactor: encapsulate pulling in a struct 2017-12-24 15:23:28 +01:00
stdinserver.go cmd: no context + logging for config parsing 2017-09-22 14:13:30 +02:00
test.go logging: first outlet receives logger error message 2017-11-17 00:25:38 +01:00
version.go 'zrepl version' and 'zrepl control version' subcommand + maintainer README 2017-11-18 21:12:48 +01:00