func (a *Entry) FetchingError(err error) {
	a.failed()
	a.setEntryStatus(v1alpha1.AddonFetchingError, a.limitMessage(err.Error()))
}
FetchingError sets addons as failed, sets addon reason as FetchingError
package repository
import (
	"fmt"
	"strings"
	"github.com/Masterminds/semver"
	"github.com/kyma-project/helm-broker/internal"
	"github.com/kyma-project/helm-broker/pkg/apis/addons/v1alpha1"
)
type Entry struct {
	ID  string
	URL string
	AddonWithCharts *internal.AddonWithCharts
}
func NewRepositoryEntry(n, v, u string) *Entry {
	return &Entry{
		URL: u,
		AddonWithCharts: &internal.AddonWithCharts{
			Addon: &internal.Addon{
				Name:    internal.AddonName(n),
				Version: *semver.MustParse(v),
				Status:  v1alpha1.AddonStatusReady,
			},
		},
	}
}
func (a *Entry) IsReady() bool {
	return a.AddonWithCharts.Addon.Status == v1alpha1.AddonStatusReady
}
func (a *Entry) IsComplete() bool {
	return a.ID != ""
}