func (m MockRetrieverFactory) GetStrategy(_ *monitoringv1alpha1.SLI) (Retriever, error) {
	return m.Mock, nil
}
GetStrategy satisfies RetrieverFactory interface.
package sli
import (
	"errors"
	monitoringv1alpha1 "github.com/spotahome/service-level-operator/pkg/apis/monitoring/v1alpha1"
)
type RetrieverFactory interface {
	GetStrategy(*monitoringv1alpha1.SLI) (Retriever, error)
}
type retrieverFactory struct {
	promRetriever Retriever
}
func NewRetrieverFactory(promRetriever Retriever) RetrieverFactory {
	return &retrieverFactory{
		promRetriever: promRetriever,
	}
}
func (r retrieverFactory) GetStrategy(s *monitoringv1alpha1.SLI) (Retriever, error) {
	if s.Prometheus != nil {
		return r.promRetriever, nil
	}
	return nil, errors.New("unsupported retriever kind")
}
type MockRetrieverFactory struct {
	Mock Retriever
}