Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTemplateNotIdentified = errors.New("no unique template could be identified") ErrNotDefaultChannelAllowed = errors.New("specifying no default channel is not allowed") ErrNoTemplatesInListResult = errors.New("no templates were found") ErrTemplateMarkedAsMandatory = errors.New("template marked as mandatory") ErrTemplateNotAllowed = errors.New("module template not allowed") ErrTemplateUpdateNotAllowed = errors.New("module template update not allowed") )
Functions ¶
func NewMoreThanOneTemplateCandidateErr ¶
func NewMoreThanOneTemplateCandidateErr(moduleName string, candidateTemplates []v1beta2.ModuleTemplate, ) error
Types ¶
type ModuleTemplateInfo ¶
type ModuleTemplateInfo struct { *v1beta2.ModuleTemplate Err error DesiredChannel string }
type ModuleTemplatesByModuleName ¶
type ModuleTemplatesByModuleName map[string]*ModuleTemplateInfo
func GetMandatory ¶
func GetMandatory(ctx context.Context, kymaClient client.Reader) (ModuleTemplatesByModuleName, error, )
GetMandatory returns ModuleTemplates TOs (Transfer Objects) which are marked are mandatory modules.
type TemplateLookup ¶
func NewTemplateLookup ¶
func NewTemplateLookup(reader client.Reader, descriptorProvider *provider.CachedDescriptorProvider) *TemplateLookup
func (*TemplateLookup) GetAndValidate ¶
func (t *TemplateLookup) GetAndValidate(ctx context.Context, name, channel, defaultChannel string) ModuleTemplateInfo
func (*TemplateLookup) GetRegularTemplates ¶
func (t *TemplateLookup) GetRegularTemplates(ctx context.Context, kyma *v1beta2.Kyma) ModuleTemplatesByModuleName
Click to show internal directories.
Click to hide internal directories.