func (tc *TestCollector) validate() error {
	cleanType(tc)
	switch tc.Type {
	case command:
		return validateCmd(tc)
	case pod:
		return validPod(tc)
	case events:
		return validEvents(tc)
	default:
		return fmt.Errorf("collector type %q unknown", tc.Type)
	}
}
validate checks user input and updates type if not provided
It is expected to be called prior to any other call
package v1beta1
import (
	"errors"
	"fmt"
	"strings"
)
const (
	pod     = "pod"
	events  = "events"
	command = "command"
)