Instance is an instance of a Portmaster service.
| 55 | |
| 56 | // Instance is an instance of a Portmaster service. |
| 57 | type Instance struct { |
| 58 | ctx context.Context |
| 59 | cancelCtx context.CancelFunc |
| 60 | |
| 61 | shutdownCtx context.Context |
| 62 | cancelShutdownCtx context.CancelFunc |
| 63 | |
| 64 | serviceGroup *mgr.Group |
| 65 | serviceGroupInterception *mgr.GroupModule |
| 66 | |
| 67 | binDir string |
| 68 | dataDir string |
| 69 | |
| 70 | exitCode atomic.Int32 |
| 71 | |
| 72 | database *dbmodule.DBModule |
| 73 | config *config.Config |
| 74 | api *api.API |
| 75 | metrics *metrics.Metrics |
| 76 | runtime *runtime.Runtime |
| 77 | notifications *notifications.Notifications |
| 78 | rng *rng.Rng |
| 79 | base *base.Base |
| 80 | |
| 81 | core *core.Core |
| 82 | binaryUpdates *updates.Updater |
| 83 | intelUpdates *updates.Updater |
| 84 | integration *integration.OSIntegration |
| 85 | geoip *geoip.GeoIP |
| 86 | netenv *netenv.NetEnv |
| 87 | ui *ui.UI |
| 88 | profile *profile.ProfileModule |
| 89 | network *network.Network |
| 90 | netquery *netquery.NetQuery |
| 91 | firewall *firewall.Firewall |
| 92 | filterLists *filterlists.FilterLists |
| 93 | interception *interception.Interception |
| 94 | dnsmonitor *dnsmonitor.DNSMonitor |
| 95 | customlist *customlists.CustomList |
| 96 | status *status.Status |
| 97 | broadcasts *broadcasts.Broadcasts |
| 98 | compat *compat.Compat |
| 99 | nameserver *nameserver.NameServer |
| 100 | process *process.ProcessModule |
| 101 | resolver *resolver.ResolverModule |
| 102 | sync *sync.Sync |
| 103 | control *control.Control |
| 104 | interop *interop.Interoperability |
| 105 | |
| 106 | splittun *splittun.SplitTunModule |
| 107 | |
| 108 | access *access.Access |
| 109 | |
| 110 | // SPN modules |
| 111 | SpnGroup *mgr.ExtendedGroup |
| 112 | cabin *cabin.Cabin |
| 113 | navigator *navigator.Navigator |
| 114 | captain *captain.Captain |
nothing calls this directly
no outgoing calls
no test coverage detected