func NewClient(concreteGetter RepositoryGetter, addonLoader addonLoader, documentationEnabled bool, log logrus.FieldLogger) (*Client, error) {
	specifiedSchemRegex, err := regexp.Compile(`^([A-Za-z0-9]+)::(.+)$`)
	if err != nil {
		return nil, err
	}
	return &Client{
		specifiedSchemRegex:  specifiedSchemRegex,
		addonLoader:          addonLoader,
		log:                  log.WithField("service", "addonClient"),
		concreteGetter:       concreteGetter,
		documentationEnabled: documentationEnabled,
	}, nil
}
NewClient returns new instance of Client
package provider
import (
	"fmt"
	"io/ioutil"
	"os"
	"regexp"
	"github.com/ghodss/yaml"
	"github.com/kyma-project/helm-broker/internal"
	"github.com/kyma-project/helm-broker/internal/addon"
	"github.com/pkg/errors"
	"github.com/sirupsen/logrus"
	"helm.sh/helm/v3/pkg/chart"
)
type Client struct {
	specifiedSchemRegex *regexp.Regexp
	log                 *logrus.Entry
	addonLoader         addonLoader
	concreteGetter      RepositoryGetter
	documentationEnabled bool
}