open-nomad/client/state
Tim Gross d018fcbff7
allocrunner: provide factory function so we can build mock ARs (#17161)
Tools like `nomad-nodesim` are unable to implement a minimal implementation of
an allocrunner so that we can test the client communication without having to
lug around the entire allocrunner/taskrunner code base. The allocrunner was
implemented with an interface specifically for this purpose, but there were
circular imports that made it challenging to use in practice.

Move the AllocRunner interface into an inner package and provide a factory
function type. Provide a minimal test that exercises the new function so that
consumers have some idea of what the minimum implementation required is.
2023-05-12 13:29:44 -04:00
..
testdata CSI: allow for concurrent plugin allocations (#12078) 2022-02-23 15:23:07 -05:00
08types.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
12types.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
db_bolt.go client: de-duplicate alloc updates and gate during restore (#17074) 2023-05-11 09:05:24 -04:00
db_error.go client: de-duplicate alloc updates and gate during restore (#17074) 2023-05-11 09:05:24 -04:00
db_mem.go client: de-duplicate alloc updates and gate during restore (#17074) 2023-05-11 09:05:24 -04:00
db_noop.go client: de-duplicate alloc updates and gate during restore (#17074) 2023-05-11 09:05:24 -04:00
db_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
interface.go client: de-duplicate alloc updates and gate during restore (#17074) 2023-05-11 09:05:24 -04:00
upgrade.go Revert "hashicorp/go-msgpack v2 (#16810)" (#17047) 2023-05-01 17:18:34 -04:00
upgrade_int_test.go allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
upgrade_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00