invocation is the framework-side concrete implementation of platform.Invocation. All setters are unexported so plugin code (which only sees the platform.Invocation interface) cannot mutate state.
| 14 | // (which only sees the platform.Invocation interface) cannot mutate |
| 15 | // state. |
| 16 | type invocation struct { |
| 17 | cmd platform.CommandView |
| 18 | args []string |
| 19 | started time.Time |
| 20 | err error |
| 21 | |
| 22 | denied bool |
| 23 | layer string |
| 24 | source string |
| 25 | } |
| 26 | |
| 27 | // newInvocation copies args so the read-only platform.Invocation |
| 28 | // contract holds at the slice level: a hook cannot mutate the args |
nothing calls this directly
no outgoing calls
no test coverage detected