Update Technical_Decomp_Harvest
parent
8b54d60765
commit
8b77af007c
1 changed files with 8 additions and 1 deletions
|
|
@ -1,6 +1,13 @@
|
||||||
## enroll/harvest.py
|
## enroll/harvest.py
|
||||||
|
|
||||||
All of these are dataclasses that act as the schema for state.json. harvest.harvest() creates them, then serializes them with asdict().
|
`harvest.harvest()` is the producer:
|
||||||
|
|
||||||
|
- uses UnitInfo / TimerInfo (systemd introspection)
|
||||||
|
- uses IgnorePolicy + PathFilter/CompiledPathPattern to decide what files are safe to copy
|
||||||
|
- emits ServiceSnapshot, PackageSnapshot, UsersSnapshot, etc.
|
||||||
|
- emits ManagedFile and ExcludedFile entries everywhere
|
||||||
|
- writes everything into state.json, and file copies into artifacts/<role>/...
|
||||||
|
|
||||||
|
|
||||||
### ManagedFile (dataclass)
|
### ManagedFile (dataclass)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue