Download this file
| 1 | package hostbox |
| 2 | |
| 3 | import ( |
| 4 | "context" |
| 5 | "github.com/carlosframework/platform/internal/hostguard" |
| 6 | ) |
| 7 | |
| 8 | type StopFileIdentity struct{ Device, Inode uint64 } |
| 9 | type StopCgroupIdentity struct { |
| 10 | RelativePath string |
| 11 | Device, Inode uint64 |
| 12 | InvocationID string |
| 13 | } |
| 14 | type StopKernelJournal struct { |
| 15 | WritersClosed bool |
| 16 | UnitReservationIDs []string |
| 17 | Completed ProducerCompletion `json:",omitzero"` |
| 18 | ControllerPID int |
| 19 | ProcessStart string |
| 20 | V int |
| 21 | Target hostguard.FenceTarget |
| 22 | Settled bool |
| 23 | PendingRoles bool |
| 24 | Cgroups []StopCgroupIdentity |
| 25 | Files []StopFileIdentity |
| 26 | ProducerIDs []string |
| 27 | } |
| 28 | type StopKernelJournalReader interface { |
| 29 | ReadStopKernelJournal(context.Context, hostguard.FenceTarget) (StopKernelJournal, error) |
| 30 | } |
| 31 | |