type packageValidator … // Name returns the name of the package validator. func (validator *packageValidator) Name() string { … } // Validate checks packages and their versions against the packageSpecs using // the packageManager, and returns an error on any package/version mismatch. func (validator *packageValidator) Validate(spec SysSpec) ([]error, []error) { … }