type Manager … type manager … func (m *manager) GetCollector(containerName string, getContainerPids func() ([]string, error), numberOfNUMANodes int) (stats.Collector, error) { … } func NewManager(interval time.Duration, setup func() error, vendorID string, inHostNamespace bool) (Manager, error) { … } type NoopManager … func (np *NoopManager) GetCollector(_ string, _ func() ([]string, error), _ int) (stats.Collector, error) { … }