Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFetchingError ¶
IsFetchingError returns true only if given error represents the fetching error kind
func IsLoadingError ¶
IsLoadingError returns true only if given error represents the loading error kind
func NewFetchingError ¶
NewFetchingError returns new fetching error
func NewLoadingError ¶
NewLoadingError returns new loading error
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error holds information about the addon error
type FormMeta ¶
type FormMeta struct { ID string `yaml:"id"` Name string `yaml:"name"` Version string `yaml:"version"` Description string `yaml:"description"` DisplayName string `yaml:"displayName"` Tags string `yaml:"tags"` ProviderDisplayName string `yaml:"providerDisplayName"` LongDescription string `yaml:"longDescription"` DocumentationURL string `yaml:"documentationURL"` SupportURL string `yaml:"supportURL"` ImageURL string `yaml:"imageURL"` Bindable bool `yaml:"bindable"` ProvisionOnlyOnce bool `yaml:"provisionOnlyOnce"` Labels map[string]string `yaml:"labels"` Requires []string `yaml:"requires"` BindingsRetrievable bool `yaml:"bindingsRetrievable"` PlanUpdatable *bool `yaml:"planUpdatable"` }
FormMeta describes the metdata information about the addon.
func (*FormMeta) MapLabelsToModel ¶
MapLabelsToModel maps the FormMeta.Labels to the model internal.Labels
func (*FormMeta) MapTagsToModel ¶
MapTagsToModel maps the FormMeta.Tags to the model internal.AddonTag slice
type Kind ¶
type Kind int
Kind represents the kind of the error
const ( // Unknown represents unknown error about loading addon entry Unknown Kind = iota // LoadingErrorKind represents error occurred when addon // was successfully fetched from external repository but processing/loading phase failed LoadingErrorKind // FetchingErrorKind represents error occurred when addon cannot be fetched from external repository FetchingErrorKind )
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader provides loading of addons from repository and representing them as addons and helm3 charts.
func NewLoader ¶
func NewLoader(tmpDir string, log logrus.FieldLogger) *Loader
NewLoader returns new instance of Loader.