(snap *Snapshot)
| 47 | } |
| 48 | |
| 49 | func (h *Host) activeRecordsFromSnapshot(snap *Snapshot) []capabilityRecord { |
| 50 | if snap == nil || len(snap.records) == 0 { |
| 51 | return nil |
| 52 | } |
| 53 | out := make([]capabilityRecord, 0, len(snap.records)) |
| 54 | for _, record := range snap.records { |
| 55 | if h.recordCurrent(record) { |
| 56 | out = append(out, record) |
| 57 | } |
| 58 | } |
| 59 | return out |
| 60 | } |
| 61 | |
| 62 | // RegisteredPlugins returns a stable copy of plugin metadata in the current runtime snapshot. |
| 63 | func (h *Host) RegisteredPlugins() []RegisteredPluginInfo { |
no test coverage detected