| 1 | package rootparticipation |
| 2 | |
| 3 | import "time" |
| 4 | |
| 5 | type ControllerProcess struct { |
| 6 | KernelBootID string `json:"kernel_boot_id"` |
| 7 | PID int `json:"pid"` |
| 8 | Start string `json:"start"` |
| 9 | } |
| 10 | |
| 11 | type ExecutionRequest struct { |
| 12 | Schema int `json:"schema"` |
| 13 | ID string `json:"id"` |
| 14 | Operation string `json:"operation"` |
| 15 | Host string `json:"host"` |
| 16 | Incarnation string `json:"incarnation"` |
| 17 | Stamp uint64 `json:"stamp"` |
| 18 | Session uint64 `json:"session"` |
| 19 | Op string `json:"op"` |
| 20 | Token string `json:"token,omitempty"` |
| 21 | } |
| 22 | |
| 23 | type ExecutionAuthority struct { |
| 24 | ParticipationOnly bool |
| 25 | Box, Enrollment, Account, App, Installation string |
| 26 | Migration uint64 |
| 27 | ClaimRevision, RecordRevision, DirectoryRevision string |
| 28 | Kind, Phase string |
| 29 | } |
| 30 | |
| 31 | type ExecutionResponse struct { |
| 32 | Schema int |
| 33 | Host, Incarnation string |
| 34 | Stamp, Session uint64 |
| 35 | Op, Token, BootID, Status string |
| 36 | SafeUntil int64 |
| 37 | LeaseETag string |
| 38 | Expires time.Time |
| 39 | } |
| 40 | |
| 41 | type ExecutionReplay struct { |
| 42 | Digest string |
| 43 | Response ExecutionResponse |
| 44 | } |
| 45 | |
| 46 | type ExecutionRecord struct { |
| 47 | TransitionFrom string |
| 48 | PriorSafeUntil int64 |
| 49 | Schema int |
| 50 | Request ExecutionRequest |
| 51 | Peer ControllerProcess |
| 52 | Authority ExecutionAuthority |
| 53 | Broker, Token, Status, LeaseETag string |
| 54 | RequestStart, SafeUntil int64 |
| 55 | Expires time.Time |
| 56 | Replay map[string]ExecutionReplay |
| 57 | } |
| 58 | |