inspect.go
func (s *Seekret) Inspect(Nworkers int) {
	jobs := make(chan workerJob)
	results := make(chan workerResult)

	for w := 1; w <= Nworkers; w++ {
		go inspect_worker(w, jobs, results)
	}

	objectGroupMap := s.GroupObjectsByPrimaryKeyHash()

	go func() {
		for _, objectGroup := range objectGroupMap {
			jobs <- workerJob{
				objectGroup:   objectGroup,
				ruleList:      s.ruleList,
				exceptionList: s.exceptionList,
			}
		}
		close(jobs)
	}()

	for i := 0; i < len(objectGroupMap); i++ {
		result := <-results
		s.secretList = append(s.secretList, result.secretList...)
	}
}
func (s *Seekret) Inspect(Nworkers int) {
	jobs := make(chan workerJob)
	results := make(chan workerResult)

	for w := 1; w <= Nworkers; w++ {
		go inspect_worker(w, jobs, results)
	}

	objectGroupMap := s.GroupObjectsByPrimaryKeyHash()

	go func() {
		for _, objectGroup := range objectGroupMap {
			jobs <- workerJob{
				objectGroup:   objectGroup,
				ruleList:      s.ruleList,
				exceptionList: s.exceptionList,
			}
		}
		close(jobs)
	}()

	for i := 0; i < len(objectGroupMap); i++ {
		result := <-results
		s.secretList = append(s.secretList, result.secretList...)
	}
}
// Inspect executes the inspection into all loaded objects, by checking all
// rules and exceptions loaded.