tailscale/tka
Tom DNetto 79905a1162 tka: make storage a parameter rather than an Authority struct member
Updates #5435

Based on the discussion in #5435, we can better support transactional data models
by making the underlying storage layer a parameter (which can be specialized for
the request) rather than a long-lived member of Authority.

Now that Authority is just an instantaneous snapshot of state, we can do things
like provide idempotent methods and make it cloneable, too.

Signed-off-by: Tom DNetto <tom@tailscale.com>
2022-08-26 10:44:28 -07:00
..
aum.go tka: move disablement logic out-of-band from AUMs 2022-08-25 14:25:34 -07:00
aum_test.go tka: move disablement logic out-of-band from AUMs 2022-08-25 14:25:34 -07:00
builder.go client,cmd/tailscale,ipn,tka,types: implement tka initialization flow 2022-08-22 11:35:16 -07:00
builder_test.go tka: make storage a parameter rather than an Authority struct member 2022-08-26 10:44:28 -07:00
chaintest_test.go tka,types/key: remove dependency for tailcfg & types/ packages on tka 2022-08-04 12:51:58 -07:00
key.go client,cmd/tailscale,ipn,tka,types: implement tka initialization flow 2022-08-22 11:35:16 -07:00
key_test.go tka: support rotating node-keys in node-key signatures 2022-08-24 10:41:01 -07:00
scenario_test.go tka: make storage a parameter rather than an Authority struct member 2022-08-26 10:44:28 -07:00
sig.go tka: support rotating node-keys in node-key signatures 2022-08-24 10:41:01 -07:00
sig_test.go tka: support rotating node-keys in node-key signatures 2022-08-24 10:41:01 -07:00
state.go tka: move disablement logic out-of-band from AUMs 2022-08-25 14:25:34 -07:00
state_test.go tka: move disablement logic out-of-band from AUMs 2022-08-25 14:25:34 -07:00
sync.go tka: make storage a parameter rather than an Authority struct member 2022-08-26 10:44:28 -07:00
sync_test.go tka: make storage a parameter rather than an Authority struct member 2022-08-26 10:44:28 -07:00
tailchonk.go tka: Use strict decoding settings, implement Unserialize() 2022-08-15 09:20:53 -07:00
tailchonk_test.go tka: move disablement logic out-of-band from AUMs 2022-08-25 14:25:34 -07:00
tka.go tka: make storage a parameter rather than an Authority struct member 2022-08-26 10:44:28 -07:00
tka_test.go tka: make storage a parameter rather than an Authority struct member 2022-08-26 10:44:28 -07:00